php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26686 'aggregate' doesn't work properly
Submitted: 2003-12-21 20:27 UTC Modified: 2004-01-01 20:55 UTC
From: michael at gostev dot name Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.3.4 OS: Linux RedHat 7.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: michael at gostev dot name
New email:
PHP Version: OS:

 

 [2003-12-21 20:27 UTC] 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);



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-01 11:32 UTC] 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
 [2004-01-01 20:55 UTC] sniper@php.net
a) aggregate is not supported anymore
b) We don't give support for Zend products.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 05 20:01:29 2024 UTC