From: Ilia Alshanetsky Date: Mon, 18 Jun 2007 16:46:21 +0000 (+0000) Subject: Fixed bug #41724 (libxml_get_last_error() - errors survice request scope). X-Git-Tag: php-5.2.4RC1~330 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=161ab0aa507a96e0bfbe36d4e158bf765dd7f7d9;p=php Fixed bug #41724 (libxml_get_last_error() - errors survice request scope). --- diff --git a/NEWS b/NEWS index 1fd1724395..7282c5b8e8 100644 --- 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). diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index 5ad734b802..52d7bba45d 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -674,6 +674,7 @@ static PHP_RSHUTDOWN_FUNCTION(libxml) efree(LIBXML(error_list)); LIBXML(error_list) = NULL; } + xmlResetLastError(); return SUCCESS; }