com php-src: Old comment, whitespace: Zend/zend_closures.c
| From: | Tjerk Anne Meesters | Date: | Sun, 17 Aug 2014 22:54:23 +0000 |
| Subject: | com php-src: Old comment, whitespace: Zend/zend_closures.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-81158@lists.php.net to get a copy of this message | ||
Commit: 429bbd7081c776c6dfaa72bf92b0e35e2bb3c7a5
Author: Andrea Faulds <ajf@ajf.me> Sun, 17 Aug 2014 23:54:23 +0100
Parents: 59010bff0130adcf46b79eaff2b9cfc841853dbb
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=429bbd7081c776c6dfaa72bf92b0e35e2bb3c7a5
Log:
Old comment, whitespace
Changed paths:
M Zend/zend_closures.c
Diff:
diff --git a/Zend/zend_closures.c b/Zend/zend_closures.c
index 203fe1d..c4d7789 100644
--- a/Zend/zend_closures.c
+++ b/Zend/zend_closures.c
@@ -519,14 +519,14 @@ ZEND_API void zend_create_closure(zval *res, zend_function *func,
zend_class_ent
ZVAL_UNDEF(&closure->this_ptr);
/* Invariants:
- * If the closure is unscoped, it is unbound.
- * If the closure is scoped, it is static or unbound */
+ * If the closure is unscoped, it has no bound object.
+ * The the closure is scoped, it's either static or it's bound */
closure->func.common.scope = scope;
if (scope) {
closure->func.common.fn_flags |= ZEND_ACC_PUBLIC;
if (this_ptr && Z_TYPE_P(this_ptr) == IS_OBJECT &&
(closure->func.common.fn_flags & ZEND_ACC_STATIC) == 0) {
ZVAL_COPY(&closure->this_ptr, this_ptr);
- } else {
+ } else {
closure->func.common.fn_flags |= ZEND_ACC_STATIC;
}
}