Anonymous | Login | Signup for a new account | 12-17-2024 10:33 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003165 | [Quercus] | minor | always | 12-12-08 13:41 | 12-14-08 12:58 | ||||
Reporter | koreth | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.0 | ||||||
Summary | 0003165: resin_restore_state doesn't reset static variables | ||||||||
Description |
<?php if (! resin_restore_state()) { class Foo { public static $arr = array(); } resin_save_state(); } Foo::$arr[] = 'x'; print_r(Foo::$arr); Load this page repeatedly and the array will have an additional element each time. |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Notes | |
(0003612) koreth 12-12-08 13:43 |
Static variables in functions appear to be fine; this is just static class fields. |
(0003623) ferg 12-14-08 12:58 |
php/404h |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |