]> granicus.if.org Git - php/commitdiff
tabs
authorXinchen Hui <laruence@php.net>
Sun, 26 Aug 2012 04:27:10 +0000 (12:27 +0800)
committerXinchen Hui <laruence@php.net>
Sun, 26 Aug 2012 04:27:10 +0000 (12:27 +0800)
Zend/zend_compile.c

index 6efc1e17bb6705b5d8de314076574f1442877c7e..d8257927fded8d03cd173a28ad116351430f2a04 100644 (file)
@@ -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) {