|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-04 11:26 UTC] tony2001@php.net
[2006-10-04 12:05 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 15:00:01 2025 UTC |
Description: ------------ For my developments, I need to turn on the PHP option "zend.ze1_compatibility_mode". However when using DOM classes from PHP5, I am unable to get references to some properties (e.g. documentElement) of a DOMDocument object (see example below). Is it inappropriate to use DOM classes with this option? If so, I appologize for my post. Reproduce code: --------------- $doc =& new DOMDocument(); $success = $doc->load($inputFile); $root =& $doc->documentElement; echo("With \$root, the root element is " . $root->nodeName . ".<br />"); echo("With \$doc, the root element is " .$doc->documentElement->nodeName . ".<br />"); Expected result: ---------------- With $root, the root element is myRootNode. With $doc, the root element is myRootNode. Actual result: -------------- With $root, the root element is . With $doc, the root element is myRootNode.