@@ -1387,16 +1387,16 @@ typedef struct {
1387
1387
zend_fcall_info_cache fci_cache ;
1388
1388
} php_array_walk_context ;
1389
1389
1390
- static int php_array_walk (
1391
- php_array_walk_context * context , zval * array , zval * userdata , int recursive )
1390
+ static zend_result php_array_walk (
1391
+ php_array_walk_context * context , zval * array , zval * userdata , bool recursive )
1392
1392
{
1393
1393
zval args [3 ], /* Arguments to userland function */
1394
1394
retval , /* Return value - unused */
1395
1395
* zv ;
1396
1396
HashTable * target_hash = HASH_OF (array );
1397
1397
HashPosition pos ;
1398
1398
uint32_t ht_iter ;
1399
- int result = SUCCESS ;
1399
+ zend_result result = SUCCESS ;
1400
1400
1401
1401
/* Create a local copy of fci, as we want to use different arguments at different
1402
1402
* levels of recursion. */
@@ -1538,7 +1538,7 @@ PHP_FUNCTION(array_walk)
1538
1538
Z_PARAM_ZVAL (userdata )
1539
1539
ZEND_PARSE_PARAMETERS_END ();
1540
1540
1541
- php_array_walk (& context , array , userdata , 0 );
1541
+ php_array_walk (& context , array , userdata , /* recursive */ false );
1542
1542
RETURN_TRUE ;
1543
1543
}
1544
1544
/* }}} */
@@ -1557,7 +1557,7 @@ PHP_FUNCTION(array_walk_recursive)
1557
1557
Z_PARAM_ZVAL (userdata )
1558
1558
ZEND_PARSE_PARAMETERS_END ();
1559
1559
1560
- php_array_walk (& context , array , userdata , 1 );
1560
+ php_array_walk (& context , array , userdata , /* recursive */ true );
1561
1561
RETURN_TRUE ;
1562
1562
}
1563
1563
/* }}} */
0 commit comments