#25704 [Fbk->Opn]: Configuration issue with regex
ID: 25704
User updated by: stephen dot irven at britishwaterways dot co dot uk
Reported By: stephen dot irven at britishwaterways dot co dot uk
-Status: Feedback
+Status: Open
Bug Type: Regexps related
Operating System: Redhat 8 (kernel 2.4.18-27.8.0)
PHP Version: 4.3.3
New Comment:
Thanks, The SSL build problem is fixed in the latest csv, but the regex
configuration issue remains.
Is it possible that it's defaulting to the bundled regex as it can't
find a correct system regex library (?)
I had a trawl through the configure script, and experimented altering
it to force it to "system", but got undefined references in browscap.c
and reg.c to php_regcomp', php_regexec',
php_regfree',php_regerror'
which led me to suspect that it's ignoring the system regex option for
a reason.
cheers,
Previous Comments:
------------------------------------------------------------------------
[2003-10-01 23:16:22] sniper@php.net
Grab the latest snapshot now, the SSL build problem is fixed.
------------------------------------------------------------------------
[2003-10-01 04:56:01] stephen dot irven at britishwaterways dot co dot
uk
Thanks, I tried using the latest cvs (.tar.gz), but have been unable to
get it to compile. Any attempt to make the latest cvs gives a number of
undefined references in network.c relating to SSL (see
http://experience.british-waterways.com/php4-stable-make.txt
). This is
the case even with a minimal ./configure with no options (ie not
including openSSL)
The same configure lines work perfectly with 4.3.3 ...
(corrected zlib entry)
Cheers,
------------------------------------------------------------------------
[2003-09-30 14:34:15] sniper@php.net
And FYI: --with-zlib-dir=/usr/lib is wrong, it should not contain /lib
in it.
------------------------------------------------------------------------
[2003-09-30 14:31:47] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-09-30 11:15:48] stephen dot irven at britishwaterways dot co dot
uk
Description:
------------
When configuring PHP 4.3.3 --with-regex=system , it appears to use the
PHP builtin regex regardless (phpinfo() shows "Bundled library
enabled").
[The reason I'm trying to use system regex is that PHPMapscript
(http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html)
currently requires it in order to get around a bug in their software]
I have done a search, and found a few reports of similar problems, but
no solutions yet.
Setup:
PHP: 4.3.3
Apache: 2.0.47
Linux kernel: 2.4.18-27.8.0
OpenSSL: 0.9.7b
PHP configuration:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
--with-curlwrappers --with-openssl=/usr --with-gd
--enable-gd-native-ttf --enable-ftp --with-zlib-dir=/usr/lib
--with-regex=system
phpinfo() output can be seen at:
http://experience.british-waterways.com/
showing configuration options, and regex settings.
cheers,
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25704&edit=1
Thread (8 messages)