Commit:    76ef76d2f875ccc3c9529565bdb29451a9b087ef
Author:    Matt Nowack <mdnow...@gmail.com>         Mon, 19 Mar 2012 15:29:55 
-0700
Committer: David Soria Parra <d...@php.net>      Tue, 20 Mar 2012 17:29:04 +0100
Parents:   7aa2b75db2efceff502c87c5bcb4db81accf4024

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

Log:
Adding Braces in json.c to conform with coding standards

Changed paths:
  M  ext/json/json.c


Diff:
76ef76d2f875ccc3c9529565bdb29451a9b087ef
diff --git a/ext/json/json.c b/ext/json/json.c
index f28f50b..5b62c2f 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -147,8 +147,9 @@ static int json_determine_array_type(zval **val TSRMLS_DC) 
/* {{{ */
                idx = 0;
                for (;; zend_hash_move_forward_ex(myht, &pos)) {
                        i = zend_hash_get_current_key_ex(myht, &key, &key_len, 
&index, 0, &pos);
-                       if (i == HASH_KEY_NON_EXISTANT)
+                       if (i == HASH_KEY_NON_EXISTANT) {
                                break;
+                       }
 
                        if (i == HASH_KEY_IS_STRING) {
                                return 1;


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

Reply via email to