diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-10-06 23:48:10 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-10-06 23:48:10 +0300 |
commit | 524d00e005dd730454709060e30b43d97c3a06c6 (patch) | |
tree | 87a4b572ee69168325a103b68e268bdba7784468 /Zend/zend_execute_API.c | |
parent | 3c0348056a085395b045bf9dc65d26c7da503488 (diff) | |
download | php-git-524d00e005dd730454709060e30b43d97c3a06c6.tar.gz |
Revert "Allow random $this on non-internal Closures again"
This reverts commit 35d0405c4790f0ce668c9e1b8b05197e55d29a05.
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r-- | Zend/zend_execute_API.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 2030e0265a..965b08eb38 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -851,9 +851,6 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache) / if (EXPECTED((func->op_array.fn_flags & ZEND_ACC_GENERATOR) == 0)) { zend_init_execute_data(call, &func->op_array, fci->retval); zend_execute_ex(call); - if (UNEXPECTED(ZEND_CALL_INFO(call) & ZEND_CALL_CLOSURE)) { - OBJ_RELEASE((zend_object*)func->op_array.prototype); - } } else { zend_generator_create_zval(call, &func->op_array, fci->retval); } |