summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-06-18 16:46:21 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-06-18 16:46:21 +0000
commit161ab0aa507a96e0bfbe36d4e158bf765dd7f7d9 (patch)
tree8a2e3f9371dc16c24534872a387ffc912b5b447c
parentb73d2a94ae615cb530b8cc9548d1a2bd06b57ed4 (diff)
downloadphp-git-161ab0aa507a96e0bfbe36d4e158bf765dd7f7d9.tar.gz
Fixed bug #41724 (libxml_get_last_error() - errors survice request scope).
-rw-r--r--NEWS2
-rw-r--r--ext/libxml/libxml.c1
2 files changed, 3 insertions, 0 deletions
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;
}