Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003213 [Quercus] minor always 12-01-08 15:36 01-04-09 11:32
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 0003213: Subclasses don't get separate copies of superclass method statics
Description <?php
class P {
  public function setStatic($x) {
    static $var = null;
    if (!$var) {
      $var = $x;
    }
    print $var;
  }
}

class C1 extends P {
  public function test1() {
    $this->setStatic('a');
  }
}

class C2 extends P {
  public function test2() {
    $this->setStatic('b');
  }
}

$o1 = new C1;
$o2 = new C2;
$o1->test1();
$o2->test2();


Regular PHP prints "ab". Quercus prints "aa".
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003692)
ferg
01-04-09 11:32

php/3248
 

- Issue History
Date Modified Username Field Change
12-01-08 15:36 koreth New Issue
01-04-09 11:32 ferg Note Added: 0003692
01-04-09 11:32 ferg Assigned To  => ferg
01-04-09 11:32 ferg Status new => closed
01-04-09 11:32 ferg Resolution open => fixed
01-04-09 11:32 ferg Fixed in Version  => 4.0.0


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