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

From: Date: Mon, 17 Jan 2005 12:37:08 +0000
Subject: #31584 [NEW]: 5_0 (incl. 5.0.3) A bit severe problem with protected properties
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72289@lists.php.net to get a copy of this message
From: php at hristov dot com Operating system: Linux PHP version: 5.0.3 PHP Bug Type: Zend Engine 2 problem Bug description: 5_0 (incl. 5.0.3) A bit severe problem with protected properties 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 bug report at http://bugs.php.net/?id=31584&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31584&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31584&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31584&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31584&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31584&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31584&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31584&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31584&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31584&r=support Expected behavior: http://bugs.php.net/fix.php?id=31584&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31584&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31584&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31584&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31584&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31584&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31584&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31584&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31584&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31584&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31584&r=mysqlcfg

« previous php.bugs (#72289) next »