diff options
author | Jeroen van Wolffelaar <jeroen@php.net> | 2001-08-03 23:10:04 +0000 |
---|---|---|
committer | Jeroen van Wolffelaar <jeroen@php.net> | 2001-08-03 23:10:04 +0000 |
commit | b32f1ab299cfee342a83408eba8d1b5bf082a712 (patch) | |
tree | 05c9acaff1df777b204341837a6089ca67dc2c40 /ext/standard/string.c | |
parent | f0bcaf3901f83855a4daa096dde7cf08386ba349 (diff) | |
download | php-git-b32f1ab299cfee342a83408eba8d1b5bf082a712.tar.gz |
#- Fix silly bug that caused segfault
Diffstat (limited to 'ext/standard/string.c')
-rw-r--r-- | ext/standard/string.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/string.c b/ext/standard/string.c index f2f835beed..8cfc609549 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -492,7 +492,7 @@ PHP_FUNCTION(chop) if (ZEND_NUM_ARGS() < 1 || ZEND_NUM_ARGS() > 2) WRONG_PARAM_COUNT; - zend_get_parameters_ex(2, &str, &what); + zend_get_parameters_ex(ZEND_NUM_ARGS(), &str, &what); convert_to_string_ex(str); if (ZEND_NUM_ARGS() == 2) convert_to_string_ex(str); @@ -512,7 +512,7 @@ PHP_FUNCTION(trim) if (ZEND_NUM_ARGS() < 1 || ZEND_NUM_ARGS() > 2) WRONG_PARAM_COUNT; - zend_get_parameters_ex(2, &str, &what); + zend_get_parameters_ex(ZEND_NUM_ARGS(), &str, &what); convert_to_string_ex(str); if (ZEND_NUM_ARGS() == 2) convert_to_string_ex(str); @@ -529,7 +529,7 @@ PHP_FUNCTION(ltrim) if (ZEND_NUM_ARGS() < 1 || ZEND_NUM_ARGS() > 2) WRONG_PARAM_COUNT; - zend_get_parameters_ex(2, &str, &what); + zend_get_parameters_ex(ZEND_NUM_ARGS(), &str, &what); convert_to_string_ex(str); if (ZEND_NUM_ARGS() == 2) convert_to_string_ex(str); |