Bug #17390 Updated: dump_file doesn't work if path is not absolute

From: Date: Tue, 04 Jun 2002 18:42:53 +0000
Subject: Bug #17390 Updated: dump_file doesn't work if path is not absolute
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-9488@lists.php.net to get a copy of this message
ID: 17390 Updated by: rrichards@digarc.com Reported By: sysadmin@alexdupre.com Status: Open Bug Type: DOM XML related Operating System: FreeBSD and Windows 2000 PHP Version: 4.0CVS-2002-05-23 New Comment: what version of libxml2 are you running? there was a bug in it which would causes this error and has been fixed since 2.2.12. Previous Comments: ------------------------------------------------------------------------ [2002-05-23 11:02:15] sysadmin@alexdupre.com I think to have found a bug in the dump_file() function of the domxml extension. If the path passed to the function is relative, the file is not saved anywhere (first issue) and the function returns anyway the number of bytes written (second issue). From the sources it seems that dump_file simply calls xmlSaveFile from libxml2, so maybe a path check should be done before the call. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17390&edit=1

« previous php.bugs (#9488) next »