From: Xinchen Hui Date: Mon, 14 Apr 2014 16:10:59 +0000 (+0800) Subject: Fixed sxe object clone X-Git-Tag: POST_PHPNG_MERGE~412^2~103^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30a974f435c6fcb4becea0fc3ecfc35380048823;p=php Fixed sxe object clone --- diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index 0b2b5c648a..8d3ceb3e5c 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -1965,9 +1965,9 @@ static zend_object_handlers sxe_object_handlers = { /* {{{ */ /* {{{ sxe_object_clone() */ static zend_object * -sxe_object_clone(zend_object *object TSRMLS_DC) +sxe_object_clone(zval *object TSRMLS_DC) { - php_sxe_object *sxe = php_sxe_fetch_object(object); + php_sxe_object *sxe = Z_SXEOBJ_P(object); php_sxe_object *clone; xmlNodePtr nodep = NULL; xmlDocPtr docp = NULL;