Anonymous | Login | Signup for a new account | 12-17-2024 08:44 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 | ||||
0005409 | [Quercus] | minor | always | 03-28-13 06:06 | 03-28-13 06:07 | ||||
Reporter | nam | View Status | public | ||||||
Assigned To | nam | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.35 | ||||||
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(); |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |