cvs: php4 /ext/standard rand.c
| From: | Sterling Hughes | Date: | Wed, 05 Sep 2001 21:46:45 +0000 |
| Subject: | cvs: php4 /ext/standard rand.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7231@lists.php.net to get a copy of this message | ||
sterling Wed Sep 5 17:46:45 2001 EDT
Modified files:
/php4/ext/standard rand.c
Log:
Fix ts build
# I've gotta start compiling --enable-experimental-zts... anyway we can make
# this the default when compiling from cvs? It'll help a large portion of
# compile issues with patches
Index: php4/ext/standard/rand.c
diff -u php4/ext/standard/rand.c:1.43 php4/ext/standard/rand.c:1.44
--- php4/ext/standard/rand.c:1.43 Wed Sep 5 17:38:49 2001
+++ php4/ext/standard/rand.c Wed Sep 5 17:46:44 2001
@@ -19,7 +19,7 @@
| Based on code from: Shawn Cokus <Cokus@math.washington.edu> |
+----------------------------------------------------------------------+
*/
-/* $Id: rand.c,v 1.43 2001/09/05 21:38:49 sterling Exp $ */
+/* $Id: rand.c,v 1.44 2001/09/05 21:46:44 sterling Exp $ */
#include <stdlib.h>
@@ -196,7 +196,7 @@
{
long seed;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &seed) == FAILURE)
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &seed) == FAILURE)
return;
php_srand(seed);
@@ -209,7 +209,7 @@
{
long seed;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "l", &seed) == FAILURE)
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &seed) == FAILURE)
return;
seedMT(seed TSRMLS_CC);
@@ -254,7 +254,7 @@
long number;
int argc = ZEND_NUM_ARGS();
- if (argc != 0 && zend_parse_parameters(argc, "ll", &min, &max) ==
FAILURE)
+ if (argc != 0 && zend_parse_parameters(argc TSRMLS_CC, "ll", &min, &max)
== FAILURE)
return;
number = php_rand();
@@ -275,7 +275,7 @@
long number;
int argc = ZEND_NUM_ARGS();
- if (argc != 0 && zend_parse_parameters(argc, "ll", &min, &max) ==
FAILURE)
+ if (argc != 0 && zend_parse_parameters(argc TSRMLS_CC, "ll", &min, &max)
== FAILURE)
return;
/*