mirror of
https://github.com/php/php-src.git
synced 2024-10-16 14:02:37 +00:00
bc9cba1a93
patch by andy at demos dot su
17 lines
418 B
PHP
17 lines
418 B
PHP
--TEST--
|
|
Bug #43927 (koi8r is missing from html_entity_decode())
|
|
--FILE--
|
|
<?php
|
|
var_dump(html_entity_decode("&lt;", ENT_COMPAT, 'koi8-r'));
|
|
var_dump(html_entity_decode("&#38;", ENT_COMPAT, 'koi8-r'));
|
|
var_dump(html_entity_decode("&#38;lt;", ENT_COMPAT, 'koi8-r'));
|
|
?>
|
|
--EXPECT--
|
|
string(4) "<"
|
|
string(5) "&"
|
|
string(8) "&lt;"
|
|
--UEXPECT--
|
|
unicode(4) "<"
|
|
unicode(5) "&"
|
|
unicode(8) "&lt;"
|