From 1c9c0f592c16d98b49c0b5c2bf3bb0213c4f2c9e Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Tue, 16 Dec 2003 22:14:55 +0000 Subject: [PATCH] Umm, let's not enable NO_RECURSE by default. The matches on some patterns can be more than twice as slow as before. # Maybe we should add a --disable-pcre-stack-recursion compile option --- NEWS | 4 +--- ext/pcre/config.m4 | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 647e3f1a31..e3a3b5b199 100644 --- a/NEWS +++ b/NEWS @@ -1,9 +1,7 @@ PHP 4 NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? ??? 2003, Version 4.3.5 -- Upgraded PCRE library to version 4.5. The bundled version now comes with - non-recursive matching functions which should help with some regular - expressions that ran into the stack limit. (Andrei) +- Upgraded PCRE library to version 4.5. (Andrei) - Updated bundled PostgreSQL library to version 7.4 in Windows distribution. (Edin) - Added support for --program-prefix and --program-suffix configure options. diff --git a/ext/pcre/config.m4 b/ext/pcre/config.m4 index b9a4c7880e..02e71bd25b 100644 --- a/ext/pcre/config.m4 +++ b/ext/pcre/config.m4 @@ -50,7 +50,7 @@ if test "$PHP_PCRE_REGEX" != "no"; then AC_DEFINE(HAVE_PCRE, 1, [ ]) PHP_ADD_INCLUDE($PCRE_INCDIR) - PHP_NEW_EXTENSION(pcre, php_pcre.c, $ext_shared,,-DSUPPORT_UTF8 -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10 -DNO_RECURSE) + PHP_NEW_EXTENSION(pcre, php_pcre.c, $ext_shared,,-DSUPPORT_UTF8 -DLINK_SIZE=2 -DPOSIX_MALLOC_THRESHOLD=10) fi PHP_SUBST(PCRE_SHARED_LIBADD) fi -- 2.50.1