From: adult at adult-inc dot biz Operating system: Fedora core 5 PHP version: 5.2.0 PHP Bug Type: Regexps related Bug description: Ereg(i) returns irrelevant result
Description: ------------ Ereg and eregi functions returns irrelevant results Reproduce code: --------------- if (ereg("[9876543210]{2,6}", "2006-12-17")) echo "BUG"; else echo "OK"; Expected result: ---------------- OK Actual result: -------------- BUG -- Edit bug report at http://bugs.php.net/?id=39857&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39857&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39857&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39857&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=39857&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=39857&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=39857&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=39857&r=needscript Try newer version: http://bugs.php.net/fix.php?id=39857&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=39857&r=support Expected behavior: http://bugs.php.net/fix.php?id=39857&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=39857&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=39857&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=39857&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39857&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=39857&r=dst IIS Stability: http://bugs.php.net/fix.php?id=39857&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=39857&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=39857&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=39857&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=39857&r=mysqlcfg