mirror of
https://github.com/php/php-src.git
synced 2026-03-30 20:22:36 +02:00
Implements 8bit conversions equivalently to iso-8859-1 conversions. This seems quite dubious to me, but seems to match the previous behavior. It might make more sense to map the characters into a private area instead, so that the 8bit encoding is treated as binary data with no case conversions (including no case conversions in the ascii range).
13 lines
213 B
PHP
13 lines
213 B
PHP
--TEST--
|
|
Bug #77025: mb_strpos throws Unknown encoding or conversion error
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(mb_strpos('Hello', 'e', 0, '8bit'));
|
|
var_dump(mb_stripos('Hello', 'e', 0, '8bit'));
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(1)
|
|
int(1)
|