From:             ondrej at sury dot org
Operating system: Linux
PHP version:      4.4.0
PHP Bug Type:     mbstring related
Bug description:  mb_ereg chokes on \x80-\xF7

Description:
------------
mb_ereg prints invalid regular expression error on certain characters.

This is fixed in php 5.0.4.

More information could be found at:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=278044

Reproduce code:
---------------
$name = "user/1/viewuser/1/edit";
if (mb_ereg("[^\x80-\xF7 [:alnum:[EMAIL PROTECTED]", $name)) print('The username
contains an illegal character.');

Expected result:
----------------
The username contains an illegal character.

Actual result:
--------------
Warning: mb_ereg(): mbregex compile err: invalid regular expression in
/var/www/mb_ereg.php on line 4


-- 
Edit bug report at http://bugs.php.net/?id=34119&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34119&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34119&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34119&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34119&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34119&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34119&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34119&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34119&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34119&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34119&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34119&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34119&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34119&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34119&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34119&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34119&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34119&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34119&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34119&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34119&r=mysqlcfg

Reply via email to