#32438 [Opn->Bgs]: simplexml_import_dom() (and only it) note recognized

From: Date: Thu, 24 Mar 2005 06:45:07 +0000
Subject: #32438 [Opn->Bgs]: simplexml_import_dom() (and only it) note recognized
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75795@lists.php.net to get a copy of this message
 ID:               32438
 Updated by:       sniper@php.net
 Reported By:      franp at free dot fr
-Status:           Open
+Status:           Bogus
 Bug Type:         SimpleXML related
 Operating System: FreeBSD 4.11
 PHP Version:      5.0.3
 New Comment:

You haven't build ext/dom in. Just add --with-dom to your configure
line..



Previous Comments:
------------------------------------------------------------------------

[2005-03-24 01:21:49] franp at free dot fr

Description:
------------
While all simplexml functions are working fine, simplexml_import_dom
just fails as if a non-existing function.

Reproduce code:
---------------
$doc = new DomDocument;
$doc->preserveWhiteSpace = TRUE;
	
$doc->loadXML($result);
	
$s = simplexml_load_string($result); // pass
	
$test = dom_import_simplexml($s); // pass
	
$s = simplexml_import_dom($doc); // broken ! 


Expected result:
----------------
Was working with PHP 5.0.0.
Apparently broke when passing to PHP 5.0.3.

Actual result:
--------------
Error code :
Fatal error: Call to undefined function simplexml_import_dom()


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=32438&edit=1


Thread (6 messages)

« previous php.bugs (#75795) next »