Bug #18268 Updated: Compiling with --with-pcre-regex=shared breaks php module
ID: 18268
Updated by: neva@nevalabs.org
Reported By: neva@nevalabs.org
Status: Verified
Bug Type: PCRE related
Operating System: Redhat 7.2
PHP Version: 4.3.0-dev
New Comment:
I just confirmed it, loading or without loading pcre in php.ini gives
the same error.
Tested also with --without-pcre-regex, and the problem disappears.
Maybe the PHP core feature that uses the pcre function is disabled when
using --without-pcre-regex. So maybe doing the same when using
--with-pcre-regex=shared should solve the problem...(?)
Thanks for your attention and prompt response!
Previous Comments:
------------------------------------------------------------------------
[2002-07-10 21:27:45] sniper@php.net
Verified with latest CVS HEAD. The reason for this error
is that some places in PHP core use a function provided by the pcre
extension..and when you build it as shared, that function is not
available before you load the extension.
(php_pcre_replace)
Do you have this extension loaded in php.ini ?
------------------------------------------------------------------------
[2002-07-10 19:27:09] neva@nevalabs.org
Using --with-pcre-regex=shared with ./configure causes apache to give
this message when starting:
/usr/local/apache_1.3.26/bin/apachectl start
Syntax error on line 237 of /usr/local/apache_1.3.26/conf/httpd.conf:
Cannot load /usr/local/apache_1.3.26/libexec/libphp4.so into server:
/usr/local/
apache_1.3.26/libexec/libphp4.so: undefined symbol: php_pcre_replace
/usr/local/apache_1.3.26/bin/apachectl start: httpd could not be
started
This simple configure options leads to this problem:
./configure --with-config-file-path=/usr/local/apache_1.3.26/conf
--includedir=/usr/include --with-apxs=/usr/local/apache_1.3.26/bin/apxs
--disable-debug --enable-track-vars=yes --enable-memory-limit
--enable-inline-optimization --with-gnu-ld --with-pcre-regex=shared
Details about the system:
Redhat 7.2, with all updates (glibc-2.2.4)
Apache 1.3.26
PHP 4.2.1
Excluding --with-pcre-regex=shared from the ./configure line solves the
problem, but this option used to work, at least with many older php 4.x
versions.
If you need any other info, please let me know.
Thanks,
Claudio Neves
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18268&edit=1
Thread (4 messages)