diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-08 16:25:02 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-08 16:25:02 +0200 |
commit | 5db671dcd01cd0b68b49964dfcb2b8a2e1ab0454 (patch) | |
tree | d9d505796ae09ff26974d28627c034c7318242a4 /ext/xml/xml.c | |
parent | e35a3cb28cd663489b27630e4dca2a5e61898f2e (diff) | |
download | php-git-5db671dcd01cd0b68b49964dfcb2b8a2e1ab0454.tar.gz |
Fix get_gc signature
Diffstat (limited to 'ext/xml/xml.c')
-rw-r--r-- | ext/xml/xml.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/xml/xml.c b/ext/xml/xml.c index 400926f2c1..c109be343f 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -176,7 +176,7 @@ PHP_FUNCTION(xml_parse_into_struct); static zend_object *xml_parser_create_object(zend_class_entry *class_type); static void xml_parser_free_obj(zend_object *object); -static HashTable *xml_parser_get_gc(zval *object, zval **table, int *n); +static HashTable *xml_parser_get_gc(zend_object *object, zval **table, int *n); static zend_function *xml_parser_get_constructor(zend_object *object); static zend_string *xml_utf8_decode(const XML_Char *, size_t, const XML_Char *); @@ -572,9 +572,9 @@ static void xml_parser_free_obj(zend_object *object) zend_object_std_dtor(&parser->std); } -static HashTable *xml_parser_get_gc(zval *object, zval **table, int *n) +static HashTable *xml_parser_get_gc(zend_object *object, zval **table, int *n) { - xml_parser *parser = Z_XMLPARSER_P(object); + xml_parser *parser = xml_parser_from_obj(object); *table = &parser->object; *n = XML_PARSER_NUM_ZVALS; return zend_std_get_properties(object); |