Bug #1619: apxs and --with-system-regex doesn't combine, causing crash
| From: | rene at seindal dot dk | Date: | Mon, 28 Jun 1999 23:00:41 +0000 |
| Subject: | Bug #1619: apxs and --with-system-regex doesn't combine, causing crash | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-7733@lists.php.net to get a copy of this message | ||
From: rene@seindal.dk
Operating system: linux 2.0.36/slackware 3.6
PHP version: 3.0.11
PHP Bug Type: Reproduceable crash
Bug description: apxs and --with-system-regex doesn't combine, causing crash
For some unknown reason the bundled regex doesn't work anymore (for me). Maybe it is connected
to the (new?) PCRE code??
The bundled regex did work for me with 3.0.9
When I used --with-system-regex, config.h didn't change.
I don't understand why, but configure.in tested for USE_HSREGEX in the output of "apxs -q
CFLAGS" before using the system regex. It wasn't there. I removed the test, autoconfed,
configured, compiled and it runs with the system regex.
This one crashed (with bundled regex) consistently apache with a sigsegv
<?
$regex = "^[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]$";
print "<BR>pre ereg";flush();
ereg($regex, ".");
print "<BR>post ereg";flush();
?>
The second print never arrived.
Php configured as (with changed configure.in!):
./configure --with-apxs=/usr/local/apache/bin/apxs --with-imap=/vol/src/drift/imap-4.4/c-client
--enable-track-vars --with-gd=/vol/src/test/gd1.3 --with-mysql=/usr/local/mysql/ --with-gdbm
--with-system-regex --without-pcre-regex
The diff to configure.in is ridiculous, but did the job:
*** configure.in Tue Jun 29 00:24:19 1999
--- configure.in~ Sun Jun 27 19:53:49 1999
***************
*** 485,491 ****
[ --with-system-regex Do not use the bundled regex library],
[
if test -n "$APXS"; then
! if test -z "QQQQ
$APXS -q CFLAGS | grep USE_HSREGEX"; then
REGEX_LIB=regex/libregex.a
HSREGEX=yes
AC_MSG_RESULT(yes)
--- 485,491 ----
[ --with-system-regex Do not use the bundled regex library],
[
if test -n "$APXS"; then
! if test -z "$APXS -q CFLAGS | grep USE_HSREGEX"; then
REGEX_LIB=regex/libregex.a
HSREGEX=yes
AC_MSG_RESULT(yes)
(it got wrapped, right?)