Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] 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 Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.0 Product Version 4.0.0
  Product Build
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.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- 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
 

- Issue History
Date Modified Username Field Change
12-12-08 13:41 koreth New Issue
12-12-08 13:43 koreth Note Added: 0003612
12-14-08 12:58 ferg Note Added: 0003623
12-14-08 12:58 ferg Assigned To  => ferg
12-14-08 12:58 ferg Status new => closed
12-14-08 12:58 ferg Resolution open => fixed
12-14-08 12:58 ferg Fixed in Version  => 4.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker