|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-26 19:28 UTC] cunha17 at uol dot com dot br
[2003-07-26 23:20 UTC] pollita@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
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