Re: In version 4.2.1 ereg_replace break Apache

From: Date: Mon, 12 Aug 2002 22:10:02 +0000
Subject: Re: In version 4.2.1 ereg_replace break Apache
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-112217@lists.php.net to get a copy of this message
Have you tried it on a non debug build? Danny ----- Original Message ----- From: "Marcello Lupo" <lupo@itspecialist.it> To: <php-general@lists.php.net> Sent: Monday, August 12, 2002 8:14 PM Subject: [PHP] In version 4.2.1 ereg_replace break Apache > ## 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'

« previous php.general (#112217) next »