]> granicus.if.org Git - php/commitdiff
- Fixed apache_setenv() which requires 2 parameters
authorfoobar <sniper@php.net>
Mon, 2 Jan 2006 22:39:43 +0000 (22:39 +0000)
committerfoobar <sniper@php.net>
Mon, 2 Jan 2006 22:39:43 +0000 (22:39 +0000)
sapi/apache2handler/php_functions.c

index 0ff80b7d25f03d364b4adbee8f28b07b8705420d..2df54c5d4552d78b2d2293743642dc005529e105 100644 (file)
@@ -256,7 +256,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;
        }