In version 4.2.1 ereg_replace break Apache
| From: | Marcello Lupo | Date: | Mon, 12 Aug 2002 19:14:23 +0000 |
| Subject: | In version 4.2.1 ereg_replace break Apache | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-112165@lists.php.net to get a copy of this message | ||
Hi to all,
i have version 4.1.2 installed on linux slackware 8.0 with kernel 2.2.19.
If i use this function :
## A simple function to remove consonant ##
$temp="thisisatry";
$temp=ereg_replace("[BCDFGHJKLMNPQRSTVWXYZ]","",$temp);
echo $temp;
I get :
[Mon Aug 12 18:13:29 2002] [notice] child pid 16363 exit signal Segmentation
fault (11)
FATAL: emalloc(): Unable to allocate 1087156712 bytes
In apache logs.
THis is my configure line:
'./configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--enable-debug'
'--enable- calendar' '--enable-ftp'
'--with-imap=../imap-2001.BETA.SNAP-0107022325' '-- with-mcrypt'
'--with-mhash' '--with-mysql=/usr' '--enable-memory-limit' '--
enable-track-vars' '--with-zlib' '--with-pdflib'
'--with-ttf=/usr/local/include' '-- with-jpeg-dir=/usr'
'--with-tiff-dir=/usr' '--with-system-regex=yes' '--with-gettext'
'--with-openssl' '--with-fdftk'
In version 4.1.2 and early this works perfectly.
Any ideas??
Bye Marcello