Skip to content

Commit 527a355

Browse files
committed
Add is_html5_class field to document data in libxml
1 parent 105fe07 commit 527a355

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ext/libxml/libxml.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,6 +1357,7 @@ PHP_LIBXML_API int php_libxml_increment_doc_ref(php_libxml_node_object *object,
13571357
object->document->ptr = docp;
13581358
object->document->refcount = ret_refcount;
13591359
object->document->doc_props = NULL;
1360+
object->document->is_html5_class = false;
13601361
}
13611362

13621363
return ret_refcount;

ext/libxml/php_libxml.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ typedef struct _libxml_doc_props {
5959

6060
typedef struct _php_libxml_ref_obj {
6161
void *ptr;
62-
int refcount;
6362
libxml_doc_props *doc_props;
63+
int refcount;
64+
bool is_html5_class;
6465
} php_libxml_ref_obj;
6566

6667
typedef struct _php_libxml_node_ptr {

0 commit comments

Comments
 (0)