#45896 [Opn->Fbk]: Something causing Multibyte regular expressions to become 'empty'

From: Date: Sun, 26 Oct 2008 23:03:20 +0000
Subject: #45896 [Opn->Fbk]: Something causing Multibyte regular expressions to become 'empty'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-130151@lists.php.net to get a copy of this message
ID: 45896 Updated by: jani@php.net 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

« previous php.bugs (#130151) next »