com php-src: We don't need this protection anymore (now reference counting on closures is accurate).: Zend/zend_closures.c

From: Date: Wed, 01 Apr 2015 10:38:05 +0000
Subject: com php-src: We don't need this protection anymore (now reference counting on closures is accurate).: Zend/zend_closures.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86015@lists.php.net to get a copy of this message
Commit: 1d75953a8687802364518588395eec322c945566 Author: Dmitry Stogov <dmitry@zend.com> Wed, 1 Apr 2015 13:38:05 +0300 Parents: acfc31c0f803601f49a4d512d73968f50924a68c Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1d75953a8687802364518588395eec322c945566 Log: We don't need this protection anymore (now reference counting on closures is accurate). Changed paths: M Zend/zend_closures.c Diff: diff --git a/Zend/zend_closures.c b/Zend/zend_closures.c index 37b2407..3f0f53d 100644 --- a/Zend/zend_closures.c +++ b/Zend/zend_closures.c @@ -266,13 +266,6 @@ static void zend_closure_free_storage(zend_object *object) /* {{{ */ zend_object_std_dtor(&closure->std); if (closure->func.type == ZEND_USER_FUNCTION) { - zend_execute_data *ex = EG(current_execute_data); - while (ex) { - if (ex->func == &closure->func) { - zend_error_noreturn(E_ERROR, "Cannot destroy active lambda function"); - } - ex = ex->prev_execute_data; - } destroy_op_array(&closure->func.op_array); }

« previous php.cvs (#86015) next »