]> granicus.if.org Git - php/commitdiff
Fixed sxe object clone
authorXinchen Hui <laruence@gmail.com>
Mon, 14 Apr 2014 16:10:59 +0000 (00:10 +0800)
committerXinchen Hui <laruence@gmail.com>
Mon, 14 Apr 2014 16:10:59 +0000 (00:10 +0800)
ext/simplexml/simplexml.c

index 0b2b5c648a640be7a87934c71243ed066235f291..8d3ceb3e5c19d1f419f064c44b04d1eb36290fda 100644 (file)
@@ -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;