Commit:    c6a5d192c8f23ce54c253decb8be727bddc4f3bf
Author:    Xinchen Hui <larue...@php.net>         Sun, 26 Aug 2012 12:27:10 
+0800
Parents:   7c60aeef857f288661a6f95cf3aa45d6a6feff9b
Branches:  master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=c6a5d192c8f23ce54c253decb8be727bddc4f3bf

Log:
tabs

Changed paths:
  M  Zend/zend_compile.c


Diff:
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 6efc1e1..d825792 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -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) {


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to