From:             yan at fitterer dot org
Operating system: Linux RH 7.3
PHP version:      Irrelevant
PHP Bug Type:     Regexps related
Bug description:  regex parsing errors (info please)

Description:
------------
Error in matching literal { inside regexp

Sorry I'm not putting a version on this. See below.

Reproduce code:
---------------
<?php
if (ereg("^\{$","{")) echo "^\{$ matched {";
if (ereg("^\{\}$","{}")) echo "^\{\}$ matched {}";
?>


Expected result:
----------------
This does work on 4.2.3 (and later I expect), but doesn't on 4.1.2. 

I'm trying to get it fixed by Redhat, bcse they still ship 4.1.2 with RH
7.3.

Could somebody tell me when it was fixed (which version), and if there is
an associated bug no? I searched, but to no avail. I suppose it was fixed
as part of something else...

Thanks
Yan

Actual result:
--------------
Warning: Unmatched \{ in /usr/local/typo3/museum/phptest.php on line 2

Warning: Invalid content of \{\} in /usr/local/typo3/museum/phptest.php on
line 3

-- 
Edit bug report at http://bugs.php.net/?id=24821&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24821&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24821&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24821&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24821&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24821&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24821&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24821&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24821&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24821&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24821&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24821&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24821&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24821&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24821&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24821&r=gnused

Reply via email to