Bug #1048: ereg_replace does not work
| From: | yzhang at sfu dot ca | Date: | Fri, 08 Jan 1999 23:29:25 +0000 |
| Subject: | Bug #1048: ereg_replace does not work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-3412@lists.php.net to get a copy of this message | ||
From: yzhang@sfu.ca
Operating system: Linux (2.0.36)
PHP version: 3.0.5
PHP Bug Type: Other
Bug description: ereg_replace does not work
When I use ereg_replace in a script, the browser returns with an error message while accessing the
page.
I used the Apache-1.3.3.i386.rpm that comes with Redhat 5.2, and I compiled PHP 3.0.5 as follows:
$ tar -zxf php-3.0.5.tar.gz
$ cd php-3.0.5
$ ./configure \
--with-apxs \
--prefix=/usr \
--with-gd \
--with-zlib \
--with-config-file-path=/etc/httpd/conf \
--disable-debug \
--enable-magic-quotes \
--enable-debugger \
--enable-bcmath \
--enable-track-vars \
--with-dbase \
--with-mysql=/usr/local/mysql
$ make -C regex
$ make
$ strip libphp3.so
$ install -m755 libphp3.so /usr/lib/apache/mod_php3.so
$ install -m644 php3.ini-dist /etc/httpd/conf/php3.ini
$ install -m644 extra/icons/*.gif /home/httpd/icons
any call to ereg_replace will reproduce this on my system, eg:
<?
echo ereg_replace("a", "b", "bababa");
?>
i was able to resolve the problem by adding the switch
--with-system-regex
to the configure script (and not running make -C regex).
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net