ID: 12783
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]