From: Marcus Boerger Date: Sun, 29 Aug 2004 13:29:47 +0000 (+0000) Subject: MFH: Bugfix #29882 isset crashes on arrays X-Git-Tag: php-5.0.2RC1~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a000fe6c061a43d949d56db3eb57cb27c1fa2f1e;p=php MFH: Bugfix #29882 isset crashes on arrays --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 815033ea58..6896c108be 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -761,6 +761,9 @@ void zend_do_end_variable_parse(int type, int arg_offset TSRMLS_DC) opline->opcode += 3; break; case BP_VAR_IS: + if (opline->opcode == ZEND_FETCH_DIM_W && opline->op2.op_type == IS_UNUSED) { + zend_error(E_COMPILE_ERROR, "Cannot use [] for reading"); + } opline->opcode += 6; /* 3+3 */ break; case BP_VAR_FUNC_ARG: