diff options
-rw-r--r-- | ext/simplexml/simplexml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index c4773ae7f0..54c924cb8e 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -1279,7 +1279,7 @@ SXE_METHOD(__construct) php_std_error_handling(); docp = xmlParseMemory(data, data_len); if (!docp) { - (php_libxml_node_object *)sxe->document = NULL; + ((php_libxml_node_object *)sxe)->document = NULL; zend_throw_exception(zend_exception_get_default(), "String could not be parsed as XML", 0 TSRMLS_CC); return; } |