|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-07-06 09:36 UTC] andrey at cvs dot php dot net
[1999-07-07 13:18 UTC] rasmus at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 15:00:01 2025 UTC |
The following script causes PHP 3.0.11 to segfault predictably. <HTML> <? $string1 = "This is a test"; echo( "$string1<BR>" ); $string2 = ereg_replace( " is", " was", $string1 ); echo( "$string2<BR>" ); ?> </HTML> Commenting out the ereg_replace stops the segfault. Works fine on 3.0.9 and 3.0.8. I can't find a copy of 3.0.10 to try it there. Configuration: PHP is compiled as an Apache module with the following config: ./configure --prefix=/usr \ --with-apxs=/usr/sbin/apxs \ --with-config-file-path=/usr/lib \ --enable-debug=no \ --enable-safe-mode \ --with-exec-dir=/usr/bin \ --with-system-regex \ --with-imap=imap-4.5/c-client \ --with-sybase-ct=/opt/sybase \ --with-ldap=yes \ --enable-track-vars \ --enable-debugger \ --enable-sysvsem \ --enable-sysvshm \ --with-yp \ --with-zlib \ --with-db2 \ --with-gdbm I am working on a stack trace, but apache isn't cooperating tonight.