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

ext/libxml/libxml.c

index a70f4ad7998923ac96c795e7578cf8c3bc1ba16b..e69f504a4f3167bf8e2970d2808963a019989430 100644 (file)
@@ -674,6 +674,7 @@ static PHP_RSHUTDOWN_FUNCTION(libxml)
                efree(LIBXML(error_list));
                LIBXML(error_list) = NULL;
        }
+       xmlResetLastError();
 
        return SUCCESS;
 }