summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2005-12-26 08:18:38 +0000
committerDmitry Stogov <dmitry@php.net>2005-12-26 08:18:38 +0000
commit56d78654a3cd5b68c3da11ac3008e8d8f5f8ae80 (patch)
tree509469a4e0e12848684e2aaa23870058be533b3e /Zend
parent6bcb57fc2b1bac81cea27565b848f549b85aa0c0 (diff)
downloadphp-git-56d78654a3cd5b68c3da11ac3008e8d8f5f8ae80.tar.gz
Reverted invalid fix for bug #35785
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index 0e39af6b17..8e1680d0a4 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -548,7 +548,7 @@ static inline void zend_assign_to_object(znode *result, zval **object_ptr, znode
make_real_object(object_ptr TSRMLS_CC); /* this should modify object only if it's empty */
object = *object_ptr;
- if (!object || object->type != IS_OBJECT || (opcode == ZEND_ASSIGN_OBJ && !Z_OBJ_HT_P(object)->write_property)) {
+ if (object->type != IS_OBJECT || (opcode == ZEND_ASSIGN_OBJ && !Z_OBJ_HT_P(object)->write_property)) {
zend_error(E_WARNING, "Attempt to assign property of non-object");
FREE_OP(free_op2);
if (!RETURN_VALUE_UNUSED(result)) {