ID: 45896 Updated by: [EMAIL PROTECTED] Reported By: quick dot webmaster at gmail dot com -Status: Open +Status: Feedback Bug Type: mbstring related Operating System: Redhat PHP Version: 5.2.6 New Comment:
Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. Previous Comments: ------------------------------------------------------------------------ [2008-08-23 03:27:58] quick dot webmaster at gmail dot com Description: ------------ Hi, If you try to add a Korean character to a Regular Expression with setlocale and mb_encoding configured then it will cause PHP to not properly process the regular expression and will cause PHP to return the following error: Warning: mb_ereg_search() [function.mb-ereg-search]: Empty regular expression Reproduce code: --------------- http://pastebin.ca/Cf42azGD Password is moo Expected result: ---------------- The Regular Expression should return the number 2. Actual result: -------------- Warning: mb_ereg_search() [function.mb-ereg-search]: Empty regular expression ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45896&edit=1