summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2000-12-27 13:59:40 +0000
committerAndrei Zmievski <andrei@php.net>2000-12-27 13:59:40 +0000
commit34f5c0c36d03f92c30c4d8e36007e33d826438ac (patch)
treeb8663b883754910728b12455c8dcd30f1c64cc62 /ext/pcre/php_pcre.c
parent76a69dfa1313916987946ef47da59478c3c76b73 (diff)
downloadphp-git-34f5c0c36d03f92c30c4d8e36007e33d826438ac.tar.gz
Fix argument check (bug #8421).
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c2
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, &regex, &subject, &limit, &flags) == FAILURE) {
+ if (argc < 2 || argc > 4 || zend_get_parameters_ex(argc, &regex, &subject, &limit, &flags) == FAILURE) {
WRONG_PARAM_COUNT;
}