APXS system regex test

From: Date: Sun, 27 Jun 1999 16:47:22 +0000
Subject: APXS system regex test
Groups: php.dev 
Request: Send a blank email to php-dev+get-7625@lists.php.net to get a copy of this message
The check is: if test -n "$APXS -q CFLAGS | grep USE_HSREGEX"; then REGEX_LIB=regex/libregex.a HSREGEX=yes AC_MSG_RESULT(yes) AC_DEFINE(HSREGEX) AC_DEFINE(REGEX,1) else REGEX_LIB= HSREGEX=no AC_MSG_RESULT(no) AC_DEFINE(REGEX,0) fi Shouldn't this be vice versa? test -n is true, if grep finds USE_HSREGEX in the output string. So, if Apache was compiled with -DUSE_HSREGEX the test will succeed and PHP uses it's own regex library. This probably should be "test ! -n". -- Regards, Sascha Schumann Consultant

« previous php.dev (#7625) next »