#12783 [Opn->Ver]: xmlDocFile needs absolute path

From: Date: Sat, 21 Sep 2002 00:57:17 +0000
Subject: #12783 [Opn->Ver]: xmlDocFile needs absolute path
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-19920@lists.php.net to get a copy of this message
ID: 12783 Updated by: iliaa@php.net Reported By: nick@linuxmail.org -Status: Open +Status: Verified Bug Type: *Directory/Filesystem functions Operating System: WinME -PHP Version: 4.0.6 +PHP Version: 4.3.0-dev New Comment: updated version. Previous Comments: ------------------------------------------------------------------------ [2001-11-29 08:28:46] mfischer@php.net 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?). ------------------------------------------------------------------------ [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.bugs (#19920) next »