ID: 39035
Updated by: [EMAIL PROTECTED]
Reported By: email_ylb-php at yahoo dot fr
-Status: Open
+Status: Wont fix
Bug Type: PHP options/info functions
Operating System: Windows 2003 server
PHP Version: 5.1.6
New Comment:
I don't think anybody is willing to work on ze1_compatibility_mode,
because it is supposed to be dropped in the nearest future.
Previous Comments:
------------------------------------------------------------------------
[2006-10-04 10:46:19] email_ylb-php at yahoo dot fr
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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39035&edit=1