]> granicus.if.org Git - php/commitdiff
Fix compound assign to static property
authorNikita Popov <nikic@php.net>
Sat, 19 Jul 2014 11:03:58 +0000 (13:03 +0200)
committerNikita Popov <nikic@php.net>
Sat, 19 Jul 2014 11:03:58 +0000 (13:03 +0200)
Zend/zend_compile.c

index d54ee6e26b6a6b810f9e781eb759215a55889d86..f634eb7b3795e2abbbe418930cc45110ff0f7065 100644 (file)
@@ -4999,6 +4999,7 @@ void zend_compile_compound_assign(znode *result, zend_ast *ast TSRMLS_DC) {
 
        switch (var_ast->kind) {
                case ZEND_AST_VAR:
+               case ZEND_AST_STATIC_PROP:
                        zend_compile_var(&var_node, var_ast, BP_VAR_RW TSRMLS_CC);
                        emit_op(result, opcode, &var_node, &expr_node TSRMLS_CC);
                        return;