com php-src: Merge branch 'pull-request/994': Zend/zend_closu res.c
| From: | Stanislav Malyshev | Date: | Sun, 01 Feb 2015 07:12:00 +0000 |
| Subject: | com php-src: Merge branch 'pull-request/994': Zend/zend_closu res.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84511@lists.php.net to get a copy of this message | ||
Commit: e8e04817555aa262a9d1b93ffd2ac4969ae99482
Author: Stanislav Malyshev <stas@php.net> Sat, 31 Jan 2015 23:12:00 -0800
Parents: d6b18650074e960950f96f5b3a54d3595a4ceeba 1397790560e9b74f514e4a24dea2d870214362a8
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e8e04817555aa262a9d1b93ffd2ac4969ae99482
Log:
Merge branch 'pull-request/994'
* pull-request/994:
Added test and possible fix for https://bugs.php.net/bug.php?id=67068
Changed paths:
MM Zend/zend_closures.c
Diff:
diff --cc Zend/zend_closures.c
index 023e741,2ec8383..3478ee6
--- a/Zend/zend_closures.c
+++ b/Zend/zend_closures.c
@@@ -483,8 -449,9 +483,9 @@@ ZEND_API void zend_create_closure(zval
closure->func = *func;
closure->func.common.prototype = NULL;
+ closure->func.common.fn_flags |= ZEND_ACC_CLOSURE;
- if ((scope == NULL) && (this_ptr != NULL)) {
+ if ((scope == NULL) && this_ptr && (Z_TYPE_P(this_ptr) != IS_UNDEF)) {
/* use dummy scope if we're binding an object without specifying a scope */
/* maybe it would be better to create one for this purpose */
scope = zend_ce_closure;