com php-src: initialize libxml globals in RINIT: ext/libxml/libxml.c
| From: | Antony Dovgal | Date: | Mon, 31 Mar 2014 13:49:16 +0000 |
| Subject: | com php-src: initialize libxml globals in RINIT: ext/libxml/libxml.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-76630@lists.php.net to get a copy of this message | ||
Commit: 00926122734dce9d0094be28f9673cd6b3cb85d5
Author: Antony Dovgal <tony2001@php.net> Mon, 31 Mar 2014 17:49:16 +0400
Parents: c5e63fb51bf141afc41b21b9f10cbeac41f4f34d
Branches: badoo-5.5_mysqlnd
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=00926122734dce9d0094be28f9673cd6b3cb85d5
Log:
initialize libxml globals in RINIT
Changed paths:
M ext/libxml/libxml.c
Diff:
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index 354cb54..da414fd 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -858,6 +858,11 @@ static PHP_RINIT_FUNCTION(libxml)
xmlParserInputBufferCreateFilenameDefault(php_libxml_input_buffer_create_filename);
xmlOutputBufferCreateFilenameDefault(php_libxml_output_buffer_create_filename);
}
+ LIBXML(stream_context) = NULL;
+ LIBXML(error_buffer..c) = NULL;
+ LIBXML(error_list) = NULL;
+ LIBXML(entity_loader..fci.size) = 0;
+ LIBXML(entity_loader_disabled) = 0;
return SUCCESS;
}