ID: 31141 Updated by: [EMAIL PROTECTED] Reported By: saschal at saschal dot ch -Status: Open +Status: Verified Bug Type: DOM XML related Operating System: Win 32 / Linux PHP Version: 5.0.3 New Comment:
I can reproduce that with 5.0.4-dev, but not with 5.0.2. Something has changed ;) Previous Comments: ------------------------------------------------------------------------ [2004-12-17 12:29:14] saschal at saschal dot ch I installed a testsystem (Linux / Apache 2 / PHP 5.03) on my public-server. There you can see the problem: http://knowhow.ethz.ch:81/php/testclass.php ------------------------------------------------------------------------ [2004-12-17 09:07:55] saschal at saschal dot ch I use win32 XAMPP 1.4.10 ( http://www.apachefriends.org/en/xampp-windows.html ) and Linux PHP 5.0.3RC2 (cli) (built: Dec 15 2004 14:43:51) ------------------------------------------------------------------------ [2004-12-17 04:17:10] [EMAIL PROTECTED] I can verify this on Win32, but please fill in your OS. Are you using Win32 as well? ------------------------------------------------------------------------ [2004-12-17 01:31:00] saschal at saschal dot ch 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 this bug report at http://bugs.php.net/?id=31141&edit=1