#21057 [Opn->Fbk]: ereg causes segfaults
| From: | iliaa@php.net | Date: | Tue, 17 Dec 2002 01:02:09 +0000 |
| Subject: | #21057 [Opn->Fbk]: ereg causes segfaults | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27906@lists.php.net to get a copy of this message | ||
ID: 21057
Updated by: iliaa@php.net
Reported By: kjanisz@fr.pl
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: RedHat Linux
PHP Version: 4.2.3
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-12-16 18:49:01] kjanisz@fr.pl
executing the following line:
ereg("(idea|era|plus)=([0-9]{9}|[0-9]{11})", $forfile, $regs);
where
$forfile = ' \bsg\n\n"|/usr/bin/sendsms4
-idea=xxxxxxxxx"\n\n\n\n\n\n\n\n\n'
caused segfaults on my server.
Changed to preg_match works fine.
Configure string:
'./configure' '--with-mysql=/usr/local'
'--with-pgsql=/usr/local/pgsql'
'--with-apxs=/usr/sbin/apxs' '--with-config-file-path=/etc'
'--with-dbase' '--enable-track-vars' '--with-system-regex'
'--enable-trans-sid' '--with-gd=/usr/local/src/gd-2.0.1gif'
'--with-jpeg-dir' '--with-zlib-dir'
'--with-expat=/usr/local/src/expat-1.95.1/'
'--with-interbase=/usr/local/src/Interbase' '--with-gettext'
'--with-xml' '--with-imap=/usr/local/src/imap/imap-2002.RC2'
'--with-png-dir' '--with-curl'
'--with-freetype-dir=/usr/local/src/freetype-2.1.2/freetype-2.1.2'
'--with-ttf' '--enable-gd-native-ttf'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21057&edit=1