cvs: php4 /ext/pcre php_pcre.c
| From: | Andrei Zmievski | Date: | Wed, 27 Dec 2000 13:59:41 +0000 |
| Subject: | cvs: php4 /ext/pcre php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3308@lists.php.net to get a copy of this message | ||
andrei Wed Dec 27 05:59:41 2000 EDT
Modified files:
/php4/ext/pcre php_pcre.c
Log:
Fix argument check (bug #8421).
Index: php4/ext/pcre/php_pcre.c
diff -u php4/ext/pcre/php_pcre.c:1.77 php4/ext/pcre/php_pcre.c:1.78
--- php4/ext/pcre/php_pcre.c:1.77 Fri Dec 22 08:31:42 2000
+++ php4/ext/pcre/php_pcre.c Wed Dec 27 05:59:40 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.77 2000/12/22 16:31:42 andrei Exp $ */
+/* $Id: php_pcre.c,v 1.78 2000/12/27 13:59:40 andrei Exp $ */
/*
TODO:
@@ -1084,7 +1084,7 @@
/* 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;
}