diff options
author | Andrei Zmievski <andrei@php.net> | 2000-12-27 13:59:40 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2000-12-27 13:59:40 +0000 |
commit | 34f5c0c36d03f92c30c4d8e36007e33d826438ac (patch) | |
tree | b8663b883754910728b12455c8dcd30f1c64cc62 /ext/pcre/php_pcre.c | |
parent | 76a69dfa1313916987946ef47da59478c3c76b73 (diff) | |
download | php-git-34f5c0c36d03f92c30c4d8e36007e33d826438ac.tar.gz |
Fix argument check (bug #8421).
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |