Skip to content

Commit

Permalink
Fixed bug #61557 (Crasher in tt-rss backend.php)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Nov 29, 2012
1 parent 3c1888f commit bf6fea6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext/libxml/libxml.c
Expand Up @@ -860,7 +860,6 @@ static PHP_MSHUTDOWN_FUNCTION(libxml)
{
if (!_php_libxml_per_request_initialization) {
xmlSetGenericErrorFunc(NULL, NULL);
xmlSetStructuredErrorFunc(NULL, NULL);

xmlParserInputBufferCreateFilenameDefault(NULL);
xmlOutputBufferCreateFilenameDefault(NULL);
Expand All @@ -876,11 +875,11 @@ static int php_libxml_post_deactivate()
/* reset libxml generic error handling */
if (_php_libxml_per_request_initialization) {
xmlSetGenericErrorFunc(NULL, NULL);
xmlSetStructuredErrorFunc(NULL, NULL);

xmlParserInputBufferCreateFilenameDefault(NULL);
xmlOutputBufferCreateFilenameDefault(NULL);
}
xmlSetStructuredErrorFunc(NULL, NULL);

if (LIBXML(stream_context)) {
/* the steam_context resource will be released by resource list destructor */
Expand Down

0 comments on commit bf6fea6

Please sign in to comment.