diff options
author | Sterling Hughes <sterling@php.net> | 2001-09-05 21:46:44 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2001-09-05 21:46:44 +0000 |
commit | a1b11f07551827a33e544cf798260b72da866306 (patch) | |
tree | fe516c7d83db40d99dacde6200f9bbdb90bb8654 /ext/standard/rand.c | |
parent | e121eaaef5044d8e2047c2bfecf9661239ff90c9 (diff) | |
download | php-git-a1b11f07551827a33e544cf798260b72da866306.tar.gz |
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
Diffstat (limited to 'ext/standard/rand.c')
-rw-r--r-- | ext/standard/rand.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/rand.c b/ext/standard/rand.c index 10ee52fbb9..33d6f260e1 100644 --- a/ext/standard/rand.c +++ b/ext/standard/rand.c @@ -196,7 +196,7 @@ PHP_FUNCTION(srand) { 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 @@ PHP_FUNCTION(mt_srand) { 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 @@ PHP_FUNCTION(rand) 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 @@ PHP_FUNCTION(mt_rand) 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; /* |