#31584 [Opn]: 5_0 (incl. 5.0.3) A bit severe problem with protected properties

From: Date: Mon, 17 Jan 2005 12:41:23 +0000
Subject: #31584 [Opn]: 5_0 (incl. 5.0.3) A bit severe problem with protected properties
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72290@lists.php.net to get a copy of this message
 ID:               31584
 User updated by:  php at hristov dot com
 Reported By:      php at hristov dot com
 Status:           Open
 Bug Type:         Zend Engine 2 problem
 Operating System: Linux
 PHP Version:      5.0.3
 New Comment:

Maybe it helps that it is not reproducable with 5.1.0-dev even back
from Nov 29th.


Previous Comments:
------------------------------------------------------------------------

[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 (7 messages)

« previous php.bugs (#72290) next »