]> granicus.if.org Git - php/commitdiff
MFH
authorfoobar <sniper@php.net>
Mon, 2 Jan 2006 22:11:22 +0000 (22:11 +0000)
committerfoobar <sniper@php.net>
Mon, 2 Jan 2006 22:11:22 +0000 (22:11 +0000)
sapi/apache2handler/php_functions.c

index fa9908248921b276cf5043c86138e02243b89411..871b1992cce4e851ff720bdb34be7a89f2cc16a8 100644 (file)
@@ -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;
        }