]> granicus.if.org Git - php/commitdiff
Fixed bug #41724 (libxml_get_last_error() - errors survice request scope).
authorIlia Alshanetsky <iliaa@php.net>
Mon, 18 Jun 2007 16:46:21 +0000 (16:46 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 18 Jun 2007 16:46:21 +0000 (16:46 +0000)
NEWS
ext/libxml/libxml.c

diff --git a/NEWS b/NEWS
index 1fd1724395df09108b4b0c61eb777f4de5962959..7282c5b8e8dd272c71299b94f0865bdc85738d3f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -31,6 +31,8 @@ PHP                                                                        NEWS
 - Fixed PECL bug #11216 (crash in ZipArchive::addEmptyDir when a directory 
   already exists). (Pierre)
 
+- Fixed bug #41724 (libxml_get_last_error() - errors survice request scope).
+  (thekid at php dot net, Ilia)
 - Fixed bug #41717 (imagepolygon does not respect thickness). (Pierre)
 - Fixed bug #41655 (open_basedir bypass via glob()). (Ilia)
 - Fixed bug #41640 (get_class_vars produces error on class constants).
index 5ad734b802b1fce761ad40f21367cb8285b33d8c..52d7bba45d2f29b4cad704ad45c54252957be32c 100644 (file)
@@ -674,6 +674,7 @@ static PHP_RSHUTDOWN_FUNCTION(libxml)
                efree(LIBXML(error_list));
                LIBXML(error_list) = NULL;
        }
+       xmlResetLastError();
 
        return SUCCESS;
 }