mirror of
https://github.com/php/php-src.git
synced 2026-04-25 17:08:14 +02:00
4a512625a0
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...
18 lines
448 B
PHP
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) "äöü"
|