diff options
author | Christian Seiler <cseiler@php.net> | 2009-01-26 22:54:34 +0000 |
---|---|---|
committer | Christian Seiler <cseiler@php.net> | 2009-01-26 22:54:34 +0000 |
commit | c6d89bd4a8650ac76e14a30353d334de99e7b997 (patch) | |
tree | e52e118c2ed6cc64a0251e125a8802956b574660 /Zend/zend_compile.c | |
parent | 7cb513c19ad3beecc8b5b1d635899d4d89c0946c (diff) | |
download | php-git-c6d89bd4a8650ac76e14a30353d334de99e7b997.tar.gz |
[DOC] Remove $this support in closures for PHP 5.3 beta 1
- Implementation notes here:
http://wiki.php.net/rfc/closures/removal-of-this
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r-- | Zend/zend_compile.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 7f7014b41c..8349ed7ca3 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1389,7 +1389,7 @@ void zend_do_begin_function_declaration(znode *function_token, znode *function_n CG(labels) = NULL; } -void zend_do_begin_lambda_function_declaration(znode *result, znode *function_token, int return_reference, int is_static TSRMLS_DC) +void zend_do_begin_lambda_function_declaration(znode *result, znode *function_token, int return_reference TSRMLS_DC) { znode function_name; zend_op_array *current_op_array = CG(active_op_array); @@ -1409,9 +1409,6 @@ void zend_do_begin_lambda_function_declaration(znode *result, znode *function_to zval_dtor(¤t_op->op2.u.constant); ZVAL_LONG(¤t_op->op2.u.constant, zend_hash_func(Z_STRVAL(current_op->op1.u.constant), Z_STRLEN(current_op->op1.u.constant))); current_op->result = *result; - if (is_static) { - CG(active_op_array)->fn_flags |= ZEND_ACC_STATIC; - } CG(active_op_array)->fn_flags |= ZEND_ACC_CLOSURE; } |