From: foobar Date: Mon, 2 Jan 2006 22:11:22 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.4.2RC2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09e2c59133f4a72f062e02d81ad04b93a435f36b;p=php MFH --- diff --git a/sapi/apache2handler/php_functions.c b/sapi/apache2handler/php_functions.c index fa99082489..871b1992cc 100644 --- a/sapi/apache2handler/php_functions.c +++ b/sapi/apache2handler/php_functions.c @@ -255,7 +255,7 @@ PHP_FUNCTION(apache_setenv) int arg_count = ZEND_NUM_ARGS(); request_rec *r; - if (arg_count<1 || arg_count>3 || + if (arg_count < 2 || arg_count > 3 || zend_get_parameters_ex(arg_count, &variable, &string_val, &walk_to_top) == FAILURE) { WRONG_PARAM_COUNT; }