|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-03-24 01:21 UTC] 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() PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 16:00:01 2025 UTC |
Could someone explain me how my PHp can be built "basically without DOM support" but : $doc = new DomDocument; // Work OK $doc->loadXML($result); // Work OK $s = simplexml_load_string($result); // Work OK $countNodes = count($s2->xpath('ancestor::*')); // Work OK etc... etc... ?? ALL DOM and SimpleXML functions DO Work ! ONLY $s = simplexml_import_dom($doc) FAILS ! It is hard to beleive my PHP was build without DOM support when ALL DOM functions (except one) are working OK !