mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
move document property struct from xml_common.h
This commit is contained in:
parent
73e6869340
commit
fba57a97ca
2 changed files with 16 additions and 1 deletions
|
@ -952,6 +952,10 @@ int php_libxml_decrement_doc_ref(php_libxml_node_object *object TSRMLS_DC) {
|
||||||
xmlFreeDoc((xmlDoc *) object->document->ptr);
|
xmlFreeDoc((xmlDoc *) object->document->ptr);
|
||||||
}
|
}
|
||||||
if (object->document->doc_props != NULL) {
|
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->doc_props);
|
||||||
}
|
}
|
||||||
efree(object->document);
|
efree(object->document);
|
||||||
|
|
|
@ -43,10 +43,21 @@ typedef struct {
|
||||||
zend_llist *error_list;
|
zend_llist *error_list;
|
||||||
} php_libxml_globals;
|
} 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 {
|
typedef struct _php_libxml_ref_obj {
|
||||||
void *ptr;
|
void *ptr;
|
||||||
int refcount;
|
int refcount;
|
||||||
void *doc_props;
|
libxml_doc_props *doc_props;
|
||||||
} php_libxml_ref_obj;
|
} php_libxml_ref_obj;
|
||||||
|
|
||||||
typedef struct _php_libxml_node_ptr {
|
typedef struct _php_libxml_node_ptr {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue