#26686 [Opn->Bgs]: 'aggregate' doesn't work properly

From: Date: Fri, 02 Jan 2004 01:55:07 +0000
Subject: #26686 [Opn->Bgs]: 'aggregate' doesn't work properly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-52681@lists.php.net to get a copy of this message
ID: 26686 Updated by: sniper@php.net Reported By: michael at gostev dot name -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Linux RedHat 7.3 PHP Version: 4.3.4 New Comment: a) aggregate is not supported anymore b) We don't give support for Zend products. Previous Comments: ------------------------------------------------------------------------ [2004-01-01 11:32:57] michael at gostev dot name I used latest version: PHP 4.3.5-dev (cli) (built: Jan 1 2004 19:19:18) Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies bug still here! An addition it seems that this version incompatible with Zend debugger # php -v PHP 4.3.5-dev (cli) (built: Jan 1 2004 19:19:18) Copyright (c) 1997-2003 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies with Zend Optimizer v2.1.0, Copyright (c) 1998-2003, by Zend Technologies with Zend Debugger v2.6.0, Copyright (c) 1999-2003, by Zend Technologies Segmentation fault ------------------------------------------------------------------------ [2003-12-30 10:19:25] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2003-12-21 20:27:18] michael at gostev dot name Description: ------------ Following code cause Fatal error: Call to undefined function: document_element() If we swap line 1 and line 2 code working properly Reproduce code: --------------- class DomDocumentAux {} class DomNodeAux {} function DOMTreeRoot( $text ) { $doc=domxml_open_mem($text); /* line 1 */ aggregate($doc,'DomDocumentAux'); /* line 2 */ $root=$doc->document_element(); aggregate($root,'DomNodeAux'); } $b = '<PARAMETERS></PARAMETERS>'; $a='<ROOT></ROOT>'; DOMTreeRoot($a); DOMTreeRoot($b); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26686&edit=1

« previous php.bugs (#52681) next »