Bug #18268 Updated: Compiling with --with-pcre-regex=shared breaks php module

From: Date: Thu, 11 Jul 2002 01:27:46 +0000
Subject: Bug #18268 Updated: Compiling with --with-pcre-regex=shared breaks php module
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13782@lists.php.net to get a copy of this message
ID: 18268 Updated by: sniper@php.net Reported By: neva@nevalabs.org -Status: Open +Status: Verified Bug Type: PCRE related Operating System: Redhat 7.2 -PHP Version: 4.2.1 +PHP Version: 4.3.0-dev New Comment: 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 ? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#13782) next »