PHP 4.0 Bug #7222: ereg_replace, ereg
| From: | zibin at tx dot technion dot ac dot il | Date: | Sun, 15 Oct 2000 15:46:56 +0000 |
| Subject: | PHP 4.0 Bug #7222: ereg_replace, ereg | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35053@lists.php.net to get a copy of this message | ||
From: zibin@tx.technion.ac.il
Operating system: unix
PHP version: 4.0.2
PHP Bug Type: *Regular Expressions
Bug description: ereg_replace, ereg
everytime I have a regular expression which have ".*" or "[0-9]*" I get the
following error:
Warning: REG_BADRPT in /home/websites/www.gigcenter.com/DB.htmlToPHP3.php3 on line 236
For example:
if ( eregi("onlyuser\[(.*?)\]",$inside, $regs) ||
if ( eregi("adduser\[(.*?)\]",$inside, $regs) ) {
But this doesn't cause error:
if ( eregi("authenticate=(.)",$inside, $regs) )
$authenticate = $regs[1];
if ( eregi("MUST Authenticate",$inside) )
thanks for your time.
--
Edit Bug report at: http://bugs.php.net/?id=7222&edit=1