@@ -141,7 +141,7 @@ PHP_MSHUTDOWN_FUNCTION(array) /* {{{ */
141
141
}
142
142
/* }}} */
143
143
144
- static void php_set_compare_func (int sort_type TSRMLS_DC ) /* {{{ */
144
+ static void php_set_compare_func (php_int_t sort_type TSRMLS_DC ) /* {{{ */
145
145
{
146
146
switch (sort_type & ~PHP_SORT_FLAG_CASE ) {
147
147
case PHP_SORT_NUMERIC :
@@ -218,9 +218,9 @@ static int php_array_reverse_key_compare(const void *a, const void *b TSRMLS_DC)
218
218
PHP_FUNCTION (krsort )
219
219
{
220
220
zval * array ;
221
- long sort_type = PHP_SORT_REGULAR ;
221
+ php_int_t sort_type = PHP_SORT_REGULAR ;
222
222
223
- if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a/|l " , & array , & sort_type ) == FAILURE ) {
223
+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a/|i " , & array , & sort_type ) == FAILURE ) {
224
224
RETURN_FALSE ;
225
225
}
226
226
@@ -238,9 +238,9 @@ PHP_FUNCTION(krsort)
238
238
PHP_FUNCTION (ksort )
239
239
{
240
240
zval * array ;
241
- long sort_type = PHP_SORT_REGULAR ;
241
+ php_int_t sort_type = PHP_SORT_REGULAR ;
242
242
243
- if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a/|l " , & array , & sort_type ) == FAILURE ) {
243
+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a/|i " , & array , & sort_type ) == FAILURE ) {
244
244
RETURN_FALSE ;
245
245
}
246
246
@@ -253,7 +253,7 @@ PHP_FUNCTION(ksort)
253
253
}
254
254
/* }}} */
255
255
256
- PHPAPI int php_count_recursive (zval * array , long mode TSRMLS_DC ) /* {{{ */
256
+ PHPAPI php_int_t php_count_recursive (zval * array , php_int_t mode TSRMLS_DC ) /* {{{ */
257
257
{
258
258
php_int_t cnt = 0 ;
259
259
zval * element ;
@@ -464,9 +464,9 @@ PHP_FUNCTION(natcasesort)
464
464
PHP_FUNCTION (asort )
465
465
{
466
466
zval * array ;
467
- long sort_type = PHP_SORT_REGULAR ;
467
+ php_int_t sort_type = PHP_SORT_REGULAR ;
468
468
469
- if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a/|l " , & array , & sort_type ) == FAILURE ) {
469
+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a/|i " , & array , & sort_type ) == FAILURE ) {
470
470
RETURN_FALSE ;
471
471
}
472
472
@@ -484,9 +484,9 @@ PHP_FUNCTION(asort)
484
484
PHP_FUNCTION (arsort )
485
485
{
486
486
zval * array ;
487
- long sort_type = PHP_SORT_REGULAR ;
487
+ php_int_t sort_type = PHP_SORT_REGULAR ;
488
488
489
- if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a/|l " , & array , & sort_type ) == FAILURE ) {
489
+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a/|i " , & array , & sort_type ) == FAILURE ) {
490
490
RETURN_FALSE ;
491
491
}
492
492
@@ -504,9 +504,9 @@ PHP_FUNCTION(arsort)
504
504
PHP_FUNCTION (sort )
505
505
{
506
506
zval * array ;
507
- long sort_type = PHP_SORT_REGULAR ;
507
+ php_int_t sort_type = PHP_SORT_REGULAR ;
508
508
509
- if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a/|l " , & array , & sort_type ) == FAILURE ) {
509
+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a/|i " , & array , & sort_type ) == FAILURE ) {
510
510
RETURN_FALSE ;
511
511
}
512
512
@@ -524,9 +524,9 @@ PHP_FUNCTION(sort)
524
524
PHP_FUNCTION (rsort )
525
525
{
526
526
zval * array ;
527
- long sort_type = PHP_SORT_REGULAR ;
527
+ php_int_t sort_type = PHP_SORT_REGULAR ;
528
528
529
- if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a/|l " , & array , & sort_type ) == FAILURE ) {
529
+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a/|i " , & array , & sort_type ) == FAILURE ) {
530
530
RETURN_FALSE ;
531
531
}
532
532
@@ -557,7 +557,7 @@ static int php_array_user_compare(const void *a, const void *b TSRMLS_DC) /* {{{
557
557
BG (user_compare_fci ).retval = & retval ;
558
558
BG (user_compare_fci ).no_separation = 0 ;
559
559
if (zend_call_function (& BG (user_compare_fci ), & BG (user_compare_fci_cache ) TSRMLS_CC ) == SUCCESS && Z_TYPE (retval ) != IS_UNDEF ) {
560
- long ret = zval_get_int (& retval );
560
+ php_int_t ret = zval_get_int (& retval );
561
561
zval_ptr_dtor (& retval );
562
562
zval_ptr_dtor (& args [1 ]);
563
563
zval_ptr_dtor (& args [0 ]);
@@ -695,7 +695,7 @@ static int php_array_user_key_compare(const void *a, const void *b TSRMLS_DC) /*
695
695
Bucket * s ;
696
696
zval args [2 ];
697
697
zval retval ;
698
- long result ;
698
+ php_int_t result ;
699
699
700
700
ZVAL_NULL (& args [0 ]);
701
701
ZVAL_NULL (& args [1 ]);
@@ -1357,15 +1357,15 @@ PHPAPI int php_prefix_varname(zval *result, zval *prefix, char *var_name, int va
1357
1357
PHP_FUNCTION (extract )
1358
1358
{
1359
1359
zval * var_array , * prefix = NULL ;
1360
- long extract_type = EXTR_OVERWRITE ;
1360
+ php_int_t extract_type = EXTR_OVERWRITE ;
1361
1361
zval * entry ;
1362
1362
zend_string * var_name ;
1363
1363
php_uint_t num_key ;
1364
1364
int var_exists , count = 0 ;
1365
1365
int extract_refs = 0 ;
1366
1366
zend_array * symbol_table ;
1367
1367
1368
- if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a/|lz /" , & var_array , & extract_type , & prefix ) == FAILURE ) {
1368
+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a/|iz /" , & var_array , & extract_type , & prefix ) == FAILURE ) {
1369
1369
return ;
1370
1370
}
1371
1371
@@ -2953,9 +2953,9 @@ PHP_FUNCTION(array_unique)
2953
2953
};
2954
2954
struct bucketindex * arTmp , * cmpdata , * lastkept ;
2955
2955
unsigned int i ;
2956
- long sort_type = PHP_SORT_STRING ;
2956
+ php_int_t sort_type = PHP_SORT_STRING ;
2957
2957
2958
- if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a|l " , & array , & sort_type ) == FAILURE ) {
2958
+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a|i " , & array , & sort_type ) == FAILURE ) {
2959
2959
return ;
2960
2960
}
2961
2961
@@ -3061,7 +3061,7 @@ static int zval_user_compare(zval *a, zval *b TSRMLS_DC) /* {{{ */
3061
3061
BG (user_compare_fci ).no_separation = 0 ;
3062
3062
3063
3063
if (zend_call_function (& BG (user_compare_fci ), & BG (user_compare_fci_cache ) TSRMLS_CC ) == SUCCESS && Z_TYPE (retval ) != IS_UNDEF ) {
3064
- long ret = zval_get_int (& retval );
3064
+ php_int_t ret = zval_get_int (& retval );
3065
3065
zval_ptr_dtor (& retval );
3066
3066
return ret < 0 ? -1 : ret > 0 ? 1 : 0 ;;
3067
3067
} else {
@@ -4324,13 +4324,13 @@ PHP_FUNCTION(array_filter)
4324
4324
zval args [2 ];
4325
4325
zval retval ;
4326
4326
zend_bool have_callback = 0 ;
4327
- long use_type = 0 ;
4327
+ php_int_t use_type = 0 ;
4328
4328
zend_string * string_key ;
4329
4329
zend_fcall_info fci = empty_fcall_info ;
4330
4330
zend_fcall_info_cache fci_cache = empty_fcall_info_cache ;
4331
4331
php_uint_t num_key ;
4332
4332
4333
- if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a|fl " , & array , & fci , & fci_cache , & use_type ) == FAILURE ) {
4333
+ if (zend_parse_parameters (ZEND_NUM_ARGS () TSRMLS_CC , "a|fi " , & array , & fci , & fci_cache , & use_type ) == FAILURE ) {
4334
4334
return ;
4335
4335
}
4336
4336
0 commit comments