]> granicus.if.org Git - php/commitdiff
Drop two compiler TODOs
authorNikita Popov <nikic@php.net>
Thu, 10 Dec 2015 18:04:08 +0000 (19:04 +0100)
committerNikita Popov <nikic@php.net>
Thu, 10 Dec 2015 18:04:59 +0000 (19:04 +0100)
Call-time pass by reference is now a parse error.
There is no benefit in dropping implementing_class currently.

Zend/zend_compile.c

index f59228a2a4e77481c47bc81c844d2df82d7afae6..53c62ab29cd4330816218fca79d652c237a2bc8a 100644 (file)
@@ -2903,7 +2903,6 @@ void zend_compile_compound_assign(znode *result, zend_ast *ast) /* {{{ */
 
 uint32_t zend_compile_args(zend_ast *ast, zend_function *fbc) /* {{{ */
 {
-       /* TODO.AST &var error */
        zend_ast_list *args = zend_ast_get_list(ast);
        uint32_t i;
        zend_bool uses_arg_unpack = 0;
@@ -5492,7 +5491,6 @@ void zend_compile_class_decl(zend_ast *ast) /* {{{ */
        opline = get_next_op(CG(active_op_array));
        zend_make_var_result(&declare_node, opline);
 
-       // TODO.AST drop this
        GET_NODE(&FC(implementing_class), opline->result);
 
        opline->op2_type = IS_CONST;