From: esayre at olemiss dot edu Operating system: Red Hat Enterprise Linux 3 PHP version: 5.2.0 PHP Bug Type: DOM XML related Bug description: DOMDocument::load() trims off end of include path
Description: ------------ While trying to load an XML document into a PHP script that runs through the CLI I ran into the following error. PHP Warning: DOMDocument::load(): I/O warning : failed to load external entity "/var/www/GrahamCracker/FARIntegration/ ORSPRequestTemplate.xml" in /var/www/code/GrahamCracker/ FARIntegration/SynchronizeDatabases.php on line 126 PHP Fatal error: Call to a member function appendChild() on a non-object in /var/www/code/GrahamCracker/FARIntegration/ SynchronizeDatabases.php on line 132 The include path was set properly as "/var/www/code" but the DOMDocument::load() method tried to use "/var/www" which is not listed in the include path. Actual result: -------------- PHP Warning: DOMDocument::load(): I/O warning : failed to load external entity "/var/www/GrahamCracker/FARIntegration/ ORSPRequestTemplate.xml" in /var/www/code/GrahamCracker/ FARIntegration/SynchronizeDatabases.php on line 126 PHP Fatal error: Call to a member function appendChild() on a non-object in /var/www/code/GrahamCracker/FARIntegration/ SynchronizeDatabases.php on line 132 -- Edit bug report at http://bugs.php.net/?id=39823&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39823&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39823&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39823&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39823&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39823&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39823&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39823&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39823&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39823&r=support Expected behavior: http://bugs.php.net/fix.php?id=39823&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39823&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39823&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39823&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39823&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39823&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39823&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39823&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39823&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39823&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39823&r=mysqlcfg