|
|
 |
php-dev
#31584 [Csd->Opn]: 5_0 (incl. 5.0.3) A bit severe problem with protected properties
by Php At Hristov Dot Com other posts by this author
Feb 28 2005 3:17PM messages near this date
#31584 [Opn->Ver]: 5_0 (incl. 5.0.3) A bit severe problem with protected properties
|
#31584 [Opn]: 5_0 (incl. 5.0.3) A bit severe problem with protected properties
ID: 31584
User updated by: php at hristov dot com
Reported By: php at hristov dot com
-Status: Closed
+Status: Open
Bug Type: Zend Engine 2 problem
Operating System: Linux
-PHP Version: 5.0.3
+PHP Version: 5.0.4-dev (28.02.2005)
New Comment:
Erm, error. Works again with latest HEAD (5.1) but does not work with
latest 5_0 (CVS php5-STABLE-200502282130)
Andrey
Previous Comments:
------------------------------------------------------------------------
[2005-02-28 23:44:39] php at hristov dot com
works as expected
------------------------------------------------------------------------
[2005-02-28 21:01:24] sniper@[...].net
Please try using this CVS snapshot:
http://snaps.php.net/php5-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.0-win32-latest.zip
..and make sure the Version field in the report matches the date of the
snapshot..
------------------------------------------------------------------------
[2005-01-17 13:41:22] php at hristov dot com
Maybe it helps that it is not reproducable with 5.1.0-dev even back
from Nov 29th.
------------------------------------------------------------------------
[2005-01-17 13:37:08] php at hristov dot com
Description:
------------
The example code works with HEAD but is broken with 5_0 latest build as
well as 5.0.3 . 5.0.2 and lower not checked.
Reproduce code:
---------------
php -r 'class a{protected static $foo=2;} class b extends a{function
p(){var_dump(a::$foo);}}$b=new b;$b-> p();'
Expected result:
----------------
int(2)
Actual result:
--------------
Fatal error: Cannot access protected property a::$foo in Command line
code on line 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31584&edit=1
Thread:
Php At Hristov Dot Com
sniper
Php At Hristov Dot Com
Php At Hristov Dot Com
Php At Hristov Dot Com
|
|
|
 |
|