|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-03 20:48 UTC] nlopess@php.net
[2009-06-03 20:49 UTC] jani@php.net
[2009-06-03 20:49 UTC] scottmac@php.net
[2009-06-03 21:00 UTC] jani@php.net
[2009-06-03 21:14 UTC] nlopess@php.net
[2009-06-03 22:45 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 05:00:01 2025 UTC |
Description: ------------ preg_match() doesn't match string when utf-8 mode is enabled and 0xAB char ("«") is present in input. Everything works correctly when utf-8 mode is disabled. Reproduce code: --------------- <?php $str = "test \xab test"; if (preg_match('/test/u', $str)) echo 'Match'; else echo 'No match'; ?> Expected result: ---------------- 'Match' printed Actual result: -------------- 'No match' printed