Skip to content

Commit 73d4931

Browse files
author
Andi Gutmans
committed
- Need to do some rewriting in the parser instead of this.
1 parent 6479bfe commit 73d4931

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_compile.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,11 @@ void zend_do_end_variable_parse(int type, int arg_offset TSRMLS_DC)
539539
zend_llist_element *le;
540540
zend_op *opline, *opline_ptr;
541541

542+
/*
542543
if (zend_variable_buffer_empty(TSRMLS_C) && (type == BP_VAR_W || type == BP_VAR_RW)) {
543544
zend_error(E_ERROR, "Method can't be used as l-value");
544545
}
546+
*/
545547
zend_stack_top(&CG(bp_stack), (void **) &fetch_list_ptr);
546548

547549
le = fetch_list_ptr->head;

0 commit comments

Comments
 (0)