From: email_ylb-php at yahoo dot fr
Operating system: Windows 2003 server
PHP version: 5.1.6
PHP Bug Type: PHP options/info functions
Bug description: Compatibilty issue between DOM and
zend.ze1_compatibility_mode?
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 bug report at http://bugs.php.net/?id=39035&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=39035&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=39035&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=39035&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39035&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=39035&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39035&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39035&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39035&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39035&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39035&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=39035&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=39035&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39035&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39035&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39035&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39035&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39035&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39035&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39035&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39035&r=mysqlcfg