Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
5409 | minor | always | 03-28-13 06:06 | 03-28-13 06:07 | |
|
|||||
Reporter: | nam | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.35 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.36 | ||
|
|||||
Summary: | 0005409: static::$foo needs to return child's field when inside parent:: methods | ||||
Description: |
(rep by V. Spivak) Compiled mode is returning wrong value (123). Intepreted mode returns the correct value (456). class A { static $foo = 123; function fun() { echo "inside A->fun()\n"; var_dump(static::$foo); } } class B extends A { static $foo = 456; function fun() { echo "inside B->fun()\n"; var_dump(static::$foo); parent::fun(); } } $b = new B(); $b->fun(); |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|