]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-5.3' into PHP-5.4
authorDmitry Stogov <dmitry@zend.com>
Wed, 20 Feb 2013 18:27:41 +0000 (22:27 +0400)
committerDmitry Stogov <dmitry@zend.com>
Wed, 20 Feb 2013 18:27:41 +0000 (22:27 +0400)
* PHP-5.3:
  Fixed external entity loading

Conflicts:
ext/libxml/libxml.c
ext/libxml/php_libxml.h

1  2 
ext/libxml/libxml.c
ext/libxml/php_libxml.h
ext/soap/php_xml.c

index 0f1c2bb82521dcf04e209f2f428c21d28f9bbd65,920a90c634922e788fdee9b789aab803fbdd0f51..b1cb45db7645e683a0b636d9de8088e25b74f791
@@@ -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 */
  
index 8b9acc044e3073d023970a016bf21f862fb33eb6,a7d84666f49509f4135eb6353a44d1c0372c59ce..04f8b4933bdfda938414fc0f09a5ee14b9ec1817
@@@ -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 {
Simple merge