From: D dot Kingma at jool dot nl Operating system: * PHP version: 5CVS-2004-06-17 (dev) PHP Bug Type: Zend Engine 2 problem Bug description: Var problem when extending domDocument
Description: ------------ When extending the domDocument class its not possible anymore to fill any class array properties (other properties can still be changed) Reproduce code: --------------- class z extends domDocument{ /** variable can have name */ var $y=Array(); var $x; function __construct(){ $this->y['doh']='me'; $x='aaaaahhhh'; print_r($this->y); echo $x; } } $z=new z(); Expected result: ---------------- Array ( [doh] => me ) aaaaahhhh Actual result: -------------- Array ( ) aaaaahhhh -- Edit bug report at http://bugs.php.net/?id=28817&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28817&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28817&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28817&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28817&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28817&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28817&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28817&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28817&r=support Expected behavior: http://bugs.php.net/fix.php?id=28817&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28817&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28817&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28817&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28817&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28817&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28817&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28817&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28817&r=float