diff options
author | Xinchen Hui <laruence@gmail.com> | 2015-09-20 09:30:50 -0700 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2015-09-20 09:30:50 -0700 |
commit | 3fc5f5cdb5d22461241b38d0e8cba8ae89b2db71 (patch) | |
tree | efe1273636b1e54d1c5ed641afa55c32afe1e745 /ext/libxml/php_libxml.h | |
parent | 6a813634052710f3f4bf6e2e03ca1b6c7be3bcee (diff) | |
download | php-git-3fc5f5cdb5d22461241b38d0e8cba8ae89b2db71.tar.gz |
Fixed bug #70535 (XSLT: free(): invalid pointer)
Diffstat (limited to 'ext/libxml/php_libxml.h')
-rw-r--r-- | ext/libxml/php_libxml.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/libxml/php_libxml.h b/ext/libxml/php_libxml.h index 6dc9daaeaf..3d61b6b7e8 100644 --- a/ext/libxml/php_libxml.h +++ b/ext/libxml/php_libxml.h @@ -86,7 +86,7 @@ typedef struct _php_libxml_node_object { static inline php_libxml_node_object *php_libxml_node_fetch_object(zend_object *obj) { - return (php_libxml_node_object *)((char*)(obj) - XtOffsetOf(php_libxml_node_object, std)); + return (php_libxml_node_object *)((char*)(obj) - obj->handlers->offset); } #define Z_LIBXML_NODE_P(zv) php_libxml_node_fetch_object(Z_OBJ_P((zv))) |