Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tabs

  • Loading branch information...
commit c6a5d192c8f23ce54c253decb8be727bddc4f3bf 1 parent 7c60aee
Xinchen Hui laruence authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 Zend/zend_compile.c
12 Zend/zend_compile.c
View
@@ -6284,12 +6284,12 @@ void zend_do_foreach_cont(znode *foreach_token, const znode *open_brackets_token
}
if ((key->op_type != IS_UNUSED)) {
- if (key->EA & ZEND_PARSED_REFERENCE_VARIABLE) {
- zend_error(E_COMPILE_ERROR, "Key element cannot be a reference");
- }
- if (key->EA & ZEND_PARSED_LIST_EXPR) {
- zend_error(E_COMPILE_ERROR, "Cannot use list as Key element");
- }
+ if (key->EA & ZEND_PARSED_REFERENCE_VARIABLE) {
+ zend_error(E_COMPILE_ERROR, "Key element cannot be a reference");
+ }
+ if (key->EA & ZEND_PARSED_LIST_EXPR) {
+ zend_error(E_COMPILE_ERROR, "Cannot use list as Key element");
+ }
}
if (value->EA & ZEND_PARSED_REFERENCE_VARIABLE) {
Please sign in to comment.
Something went wrong with that request. Please try again.