summaryrefslogtreecommitdiff
path: root/ext/simplexml
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2017-12-25 21:19:45 +0100
committerNikita Popov <nikita.ppv@gmail.com>2017-12-25 21:19:45 +0100
commit2667ddc46d7cf2ca268ecb5d1599ad4afaf19c89 (patch)
tree9f50ccc4c60d2bb1d3a963e939d8ca0818fe7f98 /ext/simplexml
parent688b9136abcbfe28ca5c0fe6aae6143c4da58f73 (diff)
downloadphp-git-2667ddc46d7cf2ca268ecb5d1599ad4afaf19c89.tar.gz
Remove unnecessary readobj==writeobj checks
This can no longer be the case since PHP 7. The writeobj must always point to a different zval.
Diffstat (limited to 'ext/simplexml')
-rw-r--r--ext/simplexml/simplexml.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c
index f30d1fd041..66ac14ad88 100644
--- a/ext/simplexml/simplexml.c
+++ b/ext/simplexml/simplexml.c
@@ -1904,10 +1904,6 @@ static int sxe_object_cast_ex(zval *readobj, zval *writeobj, int type)
}
}
- if (readobj == writeobj) {
- zval_ptr_dtor(readobj);
- }
-
rv = cast_object(writeobj, type, (char *)contents);
if (contents) {