summaryrefslogtreecommitdiff
path: root/ext/simplexml
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2014-04-15 00:10:59 +0800
committerXinchen Hui <laruence@gmail.com>2014-04-15 00:10:59 +0800
commit30a974f435c6fcb4becea0fc3ecfc35380048823 (patch)
tree28063cc19ef7438b3d7604ce61d08b2095f9b2f0 /ext/simplexml
parent1f207e73eb99bde07fc5c75320011424b03ea00e (diff)
downloadphp-git-30a974f435c6fcb4becea0fc3ecfc35380048823.tar.gz
Fixed sxe object clone
Diffstat (limited to 'ext/simplexml')
-rw-r--r--ext/simplexml/simplexml.c4
1 files changed, 2 insertions, 2 deletions
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;