cvs: /php3/functions pcre.c
| From: | Andrei Zmievski | Date: | Thu, 24 Feb 2000 14:36:50 +0000 |
| Subject: | cvs: /php3/functions pcre.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15943@lists.php.net to get a copy of this message | ||
andrei Thu Feb 24 06:36:50 2000 EDT
Modified files:
/php3/functions pcre.c
Log:
Fix bug #3599.
Index: php3/functions/pcre.c
diff -u php3/functions/pcre.c:1.23 php3/functions/pcre.c:1.24
--- php3/functions/pcre.c:1.23 Sun Feb 20 13:34:12 2000
+++ php3/functions/pcre.c Thu Feb 24 06:36:49 2000
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pcre.c,v 1.23 2000/02/20 21:34:12 eschmid Exp $ */
+/* $Id: pcre.c,v 1.24 2000/02/24 14:36:49 andrei Exp $ */
#include "php.h"
@@ -302,7 +302,7 @@
/* Get function parameters and do error-checking. */
switch(ARG_COUNT(ht)) {
case 2:
- if (getParameters(ht, 2, ®ex, &subject) == FAILURE) {
+ if (global || getParameters(ht, 2, ®ex, &subject) == FAILURE) {
WRONG_PARAM_COUNT;
}
break;