@@ -171,7 +171,7 @@ static int array_key_compare(const void *a, const void *b)
171171
172172static int array_reverse_key_compare (const void * a , const void * b )
173173{
174- return array_key_compare (a ,b )* -1 ;
174+ return array_key_compare (a , b )* -1 ;
175175}
176176
177177/* {{{ proto int krsort(array array_arg [, int sort_flags])
@@ -225,7 +225,7 @@ PHP_FUNCTION(ksort)
225225 sort_type_val = Z_LVAL_PP (sort_type );
226226 }
227227 set_compare_func (sort_type_val TSRMLS_CC );
228- if (zend_hash_sort (target_hash , qsort , array_key_compare ,0 ) == FAILURE ) {
228+ if (zend_hash_sort (target_hash , qsort , array_key_compare , 0 ) == FAILURE ) {
229229 return ;
230230 }
231231 RETURN_TRUE ;
@@ -303,7 +303,7 @@ static int array_data_compare(const void *a, const void *b)
303303
304304static int array_reverse_data_compare (const void * a , const void * b )
305305{
306- return array_data_compare (a ,b )* -1 ;
306+ return array_data_compare (a , b )* -1 ;
307307}
308308
309309static int array_natural_general_compare (const void * a , const void * b , int fold_case )
@@ -420,7 +420,7 @@ PHP_FUNCTION(asort)
420420 sort_type_val = Z_LVAL_PP (sort_type );
421421 }
422422 set_compare_func (sort_type_val TSRMLS_CC );
423- if (zend_hash_sort (target_hash , qsort , array_data_compare ,0 ) == FAILURE ) {
423+ if (zend_hash_sort (target_hash , qsort , array_data_compare , 0 ) == FAILURE ) {
424424 return ;
425425 }
426426 RETURN_TRUE ;
@@ -449,7 +449,7 @@ PHP_FUNCTION(arsort)
449449 sort_type_val = Z_LVAL_PP (sort_type );
450450 }
451451 set_compare_func (sort_type_val TSRMLS_CC );
452- if (zend_hash_sort (target_hash , qsort , array_reverse_data_compare ,0 ) == FAILURE ) {
452+ if (zend_hash_sort (target_hash , qsort , array_reverse_data_compare , 0 ) == FAILURE ) {
453453 RETURN_FALSE ;
454454 }
455455 RETURN_TRUE ;
@@ -478,7 +478,7 @@ PHP_FUNCTION(sort)
478478 sort_type_val = Z_LVAL_PP (sort_type );
479479 }
480480 set_compare_func (sort_type_val TSRMLS_CC );
481- if (zend_hash_sort (target_hash , qsort , array_data_compare ,1 ) == FAILURE ) {
481+ if (zend_hash_sort (target_hash , qsort , array_data_compare , 1 ) == FAILURE ) {
482482 RETURN_FALSE ;
483483 }
484484 RETURN_TRUE ;
@@ -507,7 +507,7 @@ PHP_FUNCTION(rsort)
507507 sort_type_val = Z_LVAL_PP (sort_type );
508508 }
509509 set_compare_func (sort_type_val TSRMLS_CC );
510- if (zend_hash_sort (target_hash , qsort , array_reverse_data_compare ,1 ) == FAILURE ) {
510+ if (zend_hash_sort (target_hash , qsort , array_reverse_data_compare , 1 ) == FAILURE ) {
511511 RETURN_FALSE ;
512512 }
513513 RETURN_TRUE ;
@@ -979,7 +979,7 @@ static int php_array_walk(HashTable *target_hash, zval **userdata TSRMLS_DC)
979979
980980 zval_ptr_dtor (& retval_ptr );
981981 } else
982- php_error (E_WARNING ,"Unable to call %s() - function does not exist" ,
982+ php_error (E_WARNING , "Unable to call %s() - function does not exist" ,
983983 (* BG (array_walk_func_name ))-> value .str .val );
984984
985985 zend_hash_move_forward_ex (target_hash , & pos );
@@ -1331,7 +1331,7 @@ PHP_FUNCTION(range)
13311331{
13321332 zval * * zlow , * * zhigh ;
13331333
1334- if (ZEND_NUM_ARGS () != 2 || zend_get_parameters_ex (2 ,& zlow ,& zhigh ) == FAILURE ) {
1334+ if (ZEND_NUM_ARGS () != 2 || zend_get_parameters_ex (2 , & zlow , & zhigh ) == FAILURE ) {
13351335 WRONG_PARAM_COUNT ;
13361336 }
13371337
@@ -2039,7 +2039,7 @@ PHP_FUNCTION(array_count_values)
20392039 MAKE_STD_ZVAL (data );
20402040 Z_TYPE_P (data ) = IS_LONG ;
20412041 Z_LVAL_P (data ) = 1 ;
2042- zend_hash_index_update (Z_ARRVAL_P (return_value ),Z_LVAL_PP (entry ), & data , sizeof (data ), NULL );
2042+ zend_hash_index_update (Z_ARRVAL_P (return_value ), Z_LVAL_PP (entry ), & data , sizeof (data ), NULL );
20432043 } else {
20442044 Z_LVAL_PP (tmp )++ ;
20452045 }
@@ -2052,7 +2052,7 @@ PHP_FUNCTION(array_count_values)
20522052 MAKE_STD_ZVAL (data );
20532053 Z_TYPE_P (data ) = IS_LONG ;
20542054 Z_LVAL_P (data ) = 1 ;
2055- zend_hash_update (Z_ARRVAL_P (return_value ),Z_STRVAL_PP (entry ),Z_STRLEN_PP (entry ) + 1 , & data , sizeof (data ), NULL );
2055+ zend_hash_update (Z_ARRVAL_P (return_value ), Z_STRVAL_PP (entry ), Z_STRLEN_PP (entry ) + 1 , & data , sizeof (data ), NULL );
20562056 } else {
20572057 Z_LVAL_PP (tmp )++ ;
20582058 }
@@ -2227,9 +2227,9 @@ PHP_FUNCTION(array_flip)
22272227 }
22282228
22292229 if (Z_TYPE_PP (entry ) == IS_LONG ) {
2230- zend_hash_index_update (Z_ARRVAL_P (return_value ),Z_LVAL_PP (entry ), & data , sizeof (data ), NULL );
2230+ zend_hash_index_update (Z_ARRVAL_P (return_value ), Z_LVAL_PP (entry ), & data , sizeof (data ), NULL );
22312231 } else if (Z_TYPE_PP (entry ) == IS_STRING ) {
2232- zend_hash_update (Z_ARRVAL_P (return_value ),Z_STRVAL_PP (entry ),Z_STRLEN_PP (entry ) + 1 , & data , sizeof (data ), NULL );
2232+ zend_hash_update (Z_ARRVAL_P (return_value ), Z_STRVAL_PP (entry ), Z_STRLEN_PP (entry ) + 1 , & data , sizeof (data ), NULL );
22332233 } else {
22342234 zval_ptr_dtor (& data ); /* will free also zval structure */
22352235 php_error (E_WARNING , "Can only flip STRING and INTEGER values!" );
0 commit comments