1
0
mirror of https://github.com/php/php-src.git synced 2026-04-25 17:08:14 +02:00
Files
archived-php-src/ext/standard/tests/strings/htmlentities25.phpt
T
Nikita Popov 4a512625a0 Don't respect mbstring.internal_encoding in htmlentities()
htmlentities() has nothing to do with mbstring and should not
depend on its ini settings. It should only respect the global
default_charset and internal_encoding settings. This is exactly
why they were introduced...
2020-05-07 15:54:54 +02:00

18 lines
448 B
PHP

--TEST--
htmlentities() should not be influenced by mb_internal_encoding()
--INI--
default_charset=
internal_encoding=
mbstring.internal_encoding=ISO-8859-1
--FILE--
<?php
var_dump(htmlentities('äöü'));
?>
--EXPECT--
PHP Deprecated: PHP Startup: Use of mbstring.internal_encoding is deprecated in Unknown on line 0
Deprecated: PHP Startup: Use of mbstring.internal_encoding is deprecated in Unknown on line 0
string(18) "&auml;&ouml;&uuml;"