]> granicus.if.org Git - php/commitdiff
MFH: move document property struct from xml_common.h
authorRob Richards <rrichards@php.net>
Mon, 22 May 2006 17:09:05 +0000 (17:09 +0000)
committerRob Richards <rrichards@php.net>
Mon, 22 May 2006 17:09:05 +0000 (17:09 +0000)
ext/libxml/libxml.c
ext/libxml/php_libxml.h

index dc5b38921f8dbf300f7b3c98d6384f135057927c..b2d55c6122a5501ebf0cecdee97bf2f7303775b4 100644 (file)
@@ -942,6 +942,10 @@ int php_libxml_decrement_doc_ref(php_libxml_node_object *object TSRMLS_DC) {
                                xmlFreeDoc((xmlDoc *) object->document->ptr);
                        }
                        if (object->document->doc_props != NULL) {
+                               if (object->document->doc_props->classmap) {
+                                       zend_hash_destroy(object->document->doc_props->classmap);
+                                       FREE_HASHTABLE(object->document->doc_props->classmap);
+                               }
                                efree(object->document->doc_props);
                        }
                        efree(object->document);
index 9fc35ae610f711fa1ef37a012a59e5b0117d5d4d..afc538e84792ee12c5ecbe04423f8df3c239a3bf 100644 (file)
@@ -43,10 +43,21 @@ typedef struct {
        zend_llist *error_list;
 } php_libxml_globals;
 
+typedef struct _libxml_doc_props {
+       int formatoutput;
+       int validateonparse;
+       int resolveexternals;
+       int preservewhitespace;
+       int substituteentities;
+       int stricterror;
+       int recover;
+       HashTable *classmap;
+} libxml_doc_props;
+
 typedef struct _php_libxml_ref_obj {
        void *ptr;
        int   refcount;
-       void *doc_props;
+       libxml_doc_props *doc_props;
 } php_libxml_ref_obj;
 
 typedef struct _php_libxml_node_ptr {