Commit: c737b89473df9dba6742b8fc8fbf6d009bf05c36 Author: Dmitry Stogov <dmi...@zend.com> Wed, 20 Feb 2013 22:27:41 +0400 Parents: 021f57ef0e21868f6bbef34c4b1a1a2bf5461159 8e76d0404b7f664ee6719fd98f0483f0ac4669d6 Branches: PHP-5.4 PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c737b89473df9dba6742b8fc8fbf6d009bf05c36 Log: Merge branch 'PHP-5.3' into PHP-5.4 * PHP-5.3: Fixed external entity loading Conflicts: ext/libxml/libxml.c ext/libxml/php_libxml.h Changed paths: MM ext/libxml/libxml.c MM ext/libxml/php_libxml.h MM ext/soap/php_xml.c Diff: diff --cc ext/libxml/libxml.c index 0f1c2bb,920a90c..b1cb45d --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@@ -269,20 -261,9 +269,21 @@@ static PHP_GINIT_FUNCTION(libxml libxml_globals->stream_context = NULL; libxml_globals->error_buffer.c = NULL; libxml_globals->error_list = NULL; + libxml_globals->entity_loader.fci.size = 0; + libxml_globals->entity_loader_disabled = 0; } +static void _php_libxml_destroy_fci(zend_fcall_info *fci) +{ + if (fci->size > 0) { + zval_ptr_dtor(&fci->function_name); + if (fci->object_ptr != NULL) { + zval_ptr_dtor(&fci->object_ptr); + } + fci->size = 0; + } +} + /* Channel libxml file io layer through the PHP streams subsystem. * This allows use of ftps:// and https:// urls */ diff --cc ext/libxml/php_libxml.h index 8b9acc0,a7d8466..04f8b49 --- a/ext/libxml/php_libxml.h +++ b/ext/libxml/php_libxml.h @@@ -43,10 -43,7 +43,11 @@@ ZEND_BEGIN_MODULE_GLOBALS(libxml zval *stream_context; smart_str error_buffer; zend_llist *error_list; + struct _php_libxml_entity_resolver { + zend_fcall_info fci; + zend_fcall_info_cache fcc; + } entity_loader; + zend_bool entity_loader_disabled; ZEND_END_MODULE_GLOBALS(libxml) typedef struct _libxml_doc_props { -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php