mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
- Fix thread safe mode.
- Please don't use Java style function braces.
This commit is contained in:
parent
00ef03186e
commit
1ecd31b66c
@ -1376,8 +1376,11 @@ PHP_FUNCTION(range)
|
||||
/* }}} */
|
||||
|
||||
|
||||
static int array_data_shuffle(const void *a, const void*b) {
|
||||
return php_rand_range(0,1) ? 1 : -1;
|
||||
static int array_data_shuffle(const void *a, const void*b)
|
||||
{
|
||||
TSRMLS_FETCH();
|
||||
|
||||
return php_rand_range(0,1 TSRMLS_CC) ? 1 : -1;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user