summaryrefslogtreecommitdiff
path: root/Zend/zend_execute.c
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2011-03-17 07:46:57 +0000
committerJohannes Schlüter <johannes@php.net>2011-03-17 07:46:57 +0000
commit6f15da050e9680025f6e3f4374efaa3e5dccb9c5 (patch)
tree90e653749ab77cc31f4529311dfa8aa0fd4599d7 /Zend/zend_execute.c
parent6e35b40b4c6dd3e3167b79a4d9a5ad7b3070e31e (diff)
downloadphp-git-6f15da050e9680025f6e3f4374efaa3e5dccb9c5.tar.gz
- Revert r309308 temporarily to get 5.3.6 out
Diffstat (limited to 'Zend/zend_execute.c')
-rw-r--r--Zend/zend_execute.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c
index f10fce38dc..e270816d8b 100644
--- a/Zend/zend_execute.c
+++ b/Zend/zend_execute.c
@@ -536,22 +536,10 @@ static inline void zend_assign_to_object(znode *result, zval **object_ptr, zval
(Z_TYPE_P(object) == IS_BOOL && Z_LVAL_P(object) == 0) ||
(Z_TYPE_P(object) == IS_STRING && Z_STRLEN_P(object) == 0)) {
SEPARATE_ZVAL_IF_NOT_REF(object_ptr);
+ zval_dtor(*object_ptr);
+ object_init(*object_ptr);
object = *object_ptr;
- Z_ADDREF_P(object);
zend_error(E_STRICT, "Creating default object from empty value");
- if (Z_REFCOUNT_P(object) == 1) {
- /* object was removed by error handler, nothing to assign to */
- zval_ptr_dtor(&object);
- if (retval) {
- *retval = &EG(uninitialized_zval);
- PZVAL_LOCK(*retval);
- }
- FREE_OP(free_value);
- return;
- }
- Z_DELREF_P(object);
- zval_dtor(object);
- object_init(object);
} else {
zend_error(E_WARNING, "Attempt to assign property of non-object");
if (!RETURN_VALUE_UNUSED(result)) {