diff options
author | Arnaud Le Blanc <lbarnaud@php.net> | 2009-04-25 21:13:07 +0000 |
---|---|---|
committer | Arnaud Le Blanc <lbarnaud@php.net> | 2009-04-25 21:13:07 +0000 |
commit | 1bef7308406549be16c328bb7456be42e8680374 (patch) | |
tree | c4383cf75b4a4a978de720d23380e641208405fd /ext/pcre | |
parent | 3d87ef8b212038164455882c61bfd59a50ef92a6 (diff) | |
download | php-git-1bef7308406549be16c328bb7456be42e8680374.tar.gz |
MFH
Diffstat (limited to 'ext/pcre')
-rw-r--r-- | ext/pcre/tests/invalid_utf8_offset.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/pcre/tests/invalid_utf8_offset.phpt b/ext/pcre/tests/invalid_utf8_offset.phpt index 4e0d40caf4..b6ec1e596f 100644 --- a/ext/pcre/tests/invalid_utf8_offset.phpt +++ b/ext/pcre/tests/invalid_utf8_offset.phpt @@ -9,13 +9,13 @@ if (@preg_match('/./u', '') === false) { --FILE-- <?php -$string = "\xc3\xa9 uma string utf8 bem formada"; +$string = b"\xc3\xa9 uma string utf8 bem formada"; -var_dump(preg_match('~.*~u', $string, $m, 0, 1)); +var_dump(preg_match(b'~.*~u', $string, $m, 0, 1)); var_dump($m); var_dump(preg_last_error() == PREG_BAD_UTF8_OFFSET_ERROR); -var_dump(preg_match('~.*~u', $string, $m, 0, 2)); +var_dump(preg_match(b'~.*~u', $string, $m, 0, 2)); var_dump($m); var_dump(preg_last_error() == PREG_NO_ERROR); |