#33754 [NEW]: The ereg function does not accept [:alpha:] as representing [a-zA-Z]
| From: | bryan at phprogrammer dot com | Date: | Mon, 18 Jul 2005 17:05:49 +0000 |
| Subject: | #33754 [NEW]: The ereg function does not accept [:alpha:] as representing [a-zA-Z] | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-82056@lists.php.net to get a copy of this message | ||
From: bryan at phprogrammer dot com
Operating system: llinux
PHP version: 4.3.11
PHP Bug Type: POSIX related
Bug description: The ereg function does not accept [:alpha:] as representing [a-zA-Z]
Description:
------------
It also ignores all the rest of the metacharacters [:space:] [:alnum:]
[:digit:] and so on
Reproduce code:
---------------
<?
if(ereg("[:digit:]", "1234", $regs))
{
print "true";
}
else
{
print "false";
}
?>
Expected result:
----------------
true
Actual result:
--------------
false
--
Edit bug report at http://bugs.php.net/?id=33754&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33754&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33754&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33754&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33754&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33754&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33754&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33754&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33754&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33754&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33754&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33754&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33754&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33754&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33754&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33754&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33754&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33754&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33754&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33754&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33754&r=mysqlcfg