cvs: php4 /ext/standard array.c

From: Date: Mon, 03 Sep 2001 20:21:01 +0000
Subject: cvs: php4 /ext/standard array.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7184@lists.php.net to get a copy of this message
andi Mon Sep 3 16:21:01 2001 EDT Modified files: /php4/ext/standard array.c Log: - Fix thread safe mode. - Please don't use Java style function braces. Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.130 php4/ext/standard/array.c:1.131 --- php4/ext/standard/array.c:1.130 Sun Sep 2 21:54:04 2001 +++ php4/ext/standard/array.c Mon Sep 3 16:21:00 2001 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: array.c,v 1.130 2001/09/03 01:54:04 jeroen Exp $ */ +/* $Id: array.c,v 1.131 2001/09/03 20:21:00 andi Exp $ */ #include "php.h" #include "php_ini.h" @@ -1376,8 +1376,11 @@ /* }}} */ -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; }

« previous php.cvs (#7184) next »