From: saschal at saschal dot ch Operating system: PHP version: 5.0.3 PHP Bug Type: DOM XML related Bug description: wrong type of variable reference with DOMDocument Class
Description: ------------ If my test class is extended with the DOMDocument class, the alias variable becomes a wrong type (NULL). Reproduce code: --------------- class Test extends DOMDocument { public $array = array(); function __construct() { parent::__construct(); if(!$ar_test) { $ar_test = array(); } $this->array = &$ar_test; echo gettype($this->array); } } $newtest = new Test; // $this->array is NULL Expected result: ---------------- type should be array Actual result: -------------- type is NULL -- Edit bug report at http://bugs.php.net/?id=31141&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31141&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31141&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31141&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31141&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31141&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31141&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31141&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31141&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31141&r=support Expected behavior: http://bugs.php.net/fix.php?id=31141&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31141&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31141&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31141&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31141&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31141&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31141&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31141&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31141&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31141&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31141&r=mysqlcfg