|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2015-03-28 21:01 UTC] yohgaki@php.net
[2016-07-17 16:30 UTC] ab@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: ab
[2016-07-17 16:30 UTC] ab@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 20:00:01 2025 UTC |
Description: ------------ mb_reg should return false like preg_match if the argument is not well-formed byte sequence since Oniguruma doesn't check the validity of encoding. The same rule applies to mb_ereg_replace, mb_ereg_search_init. Test script: --------------- $str = "\x80"; var_dump( false === mb_eregi('.', $str, $matches), [] === $matches ); Expected result: ---------------- bool(true) bool(true) Actual result: -------------- bool(false) bool(false)