|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-06-30 20:13 UTC] sas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Jul 05 19:00:02 2026 UTC |
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?)