ID: 30004 Updated by: [EMAIL PROTECTED] Reported By: Jared dot Williams1 at ntlworld dot com -Status: Feedback +Status: No Feedback Bug Type: SimpleXML related Operating System: Windows 2000/IIS PHP Version: 5.0.1 New Comment:
No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2004-11-12 12:40:17] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.0-win32-latest.zip ------------------------------------------------------------------------ [2004-09-07 04:46:56] Jared dot Williams1 at ntlworld dot com Description: ------------ Changing the directory before using using simplexml seems to cause a warning. The warning is generated from within libxml2 and is WIN32 specific. libxml2s' xmlInitializeCatalog() function in catalog.c tries to locate a directory of some catalog files, fails due the chdir() performed in PHP. Reproduce code: --------------- <?php $xml = '..//config.xml'; $dir = dirname(realpath($xml)); var_dump($dir); var_dump(chdir($dir)); $doc = simplexml_load_file(basename($xml)); var_dump(htmlspecialchars($doc->asXML())); ?> Expected result: ---------------- No warning. Actual result: -------------- Warning: simplexml_load_file() [function.simplexml-load-file]: Unable to access E:/php-5.0.1-Win32/../etc/catalog ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30004&edit=1