#31141 [Opn->Fbk]: wrong type of variable reference with DOMDocument Class

From: Date: Fri, 17 Dec 2004 03:17:11 +0000
Subject: #31141 [Opn->Fbk]: wrong type of variable reference with DOMDocument Class
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-70441@lists.php.net to get a copy of this message
ID: 31141 Updated by: jed@php.net Reported By: saschal at saschal dot ch -Status: Open +Status: Feedback Bug Type: DOM XML related PHP Version: 5.0.3 New Comment: I can verify this on Win32, but please fill in your OS. Are you using Win32 as well? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#70441) next »