]> granicus.if.org Git - php/commitdiff
Fix argument check (bug #8421).
authorAndrei Zmievski <andrei@php.net>
Wed, 27 Dec 2000 13:59:40 +0000 (13:59 +0000)
committerAndrei Zmievski <andrei@php.net>
Wed, 27 Dec 2000 13:59:40 +0000 (13:59 +0000)
ext/pcre/php_pcre.c

index 270b5fcba6651d641afa7d3223312bfa058d1e9d..8995aefe042e1f709bc776355325ed611dcb2e4a 100644 (file)
@@ -1084,7 +1084,7 @@ PHP_FUNCTION(preg_split)
 
        /* Get function parameters and do error checking */     
        argc = ZEND_NUM_ARGS();
-       if (argc < 1 || argc > 4 || zend_get_parameters_ex(argc, &regex, &subject, &limit, &flags) == FAILURE) {
+       if (argc < 2 || argc > 4 || zend_get_parameters_ex(argc, &regex, &subject, &limit, &flags) == FAILURE) {
                WRONG_PARAM_COUNT;
        }