Bug #12783 Updated: xmlDocFile needs absolute path

From: Date: Thu, 29 Nov 2001 13:28:46 +0000
Subject: Bug #12783 Updated: xmlDocFile needs absolute path
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-72007@lists.php.net to get a copy of this message
ID: 12783 Updated by: mfischer Reported By: nick@linuxmail.org Status: Open Old Bug Type: DOM XML related Bug Type: *Directory/Filesystem functions Operating System: WinME PHP Version: 4.0.6 New Comment: For some reason PHP behaves a bit different under win32 than linux: win32: C:\phpdev>php -f bla/xmldocfiletest.php current dir is C:\phpdev linux: $ php -f subtest/xmldocfiletest.php path is /home/mfischer/src/php/bugtest/domxml/subtest See the difference? This tests where run with a call to the system call (!) getcwd() [not php's user function] before the actual file IO happens through libxml2. So this is not a domxml problem but a general PHP problem. Reclassifying (anyone know a better type?). Previous Comments: ------------------------------------------------------------------------ [2001-08-16 00:30:58] nick@linuxmail.org When loading an XML file with xmlDocFile using a relative path (ie the XML is in the same dir as the script), I get: Fatal error: Call to a member function on a non-object in [script] at line [#] The line it points to is the first time I try to reference the object returned by xmlDocFile. If I change this to an absolute path, it works fine. I've verified that the cwd is what I think it is, so... any ideas? cheers, nick ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12783&edit=1

« previous php.dev (#72007) next »