From 34f5c0c36d03f92c30c4d8e36007e33d826438ac Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Wed, 27 Dec 2000 13:59:40 +0000 Subject: Fix argument check (bug #8421). --- ext/pcre/php_pcre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 270b5fcba6..8995aefe04 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -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, ®ex, &subject, &limit, &flags) == FAILURE) { + if (argc < 2 || argc > 4 || zend_get_parameters_ex(argc, ®ex, &subject, &limit, &flags) == FAILURE) { WRONG_PARAM_COUNT; } -- cgit v1.2.1