mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
4a946a91e5
- Fixed usage of zend_multibyte_get_internal_encoding (its return cannot be cast to char*). - Change tests to reflect that charset detection now relies on internal_encoding, not on current_internal_encoding. NOTE: This fixes the changes in rev 306077, but it remains that that change introduced a BC break. I assumed it was intentional
18 lines
407 B
PHP
18 lines
407 B
PHP
--TEST--
|
|
htmlentities() test 7 (mbstring / ISO-8859-1)
|
|
--INI--
|
|
output_handler=
|
|
mbstring.internal_encoding=ISO-8859-1
|
|
--SKIPIF--
|
|
<?php
|
|
extension_loaded("mbstring") or die("skip mbstring not available\n");
|
|
--FILE--
|
|
<?php
|
|
mb_internal_encoding('ISO-8859-1');
|
|
print mb_internal_encoding()."\n";
|
|
var_dump(htmlentities("\xe4\xf6\xfc", ENT_QUOTES, ''));
|
|
?>
|
|
--EXPECT--
|
|
ISO-8859-1
|
|
string(18) "äöü"
|