mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
add test
This commit is contained in:
parent
37a607c7f8
commit
89273e1482
12
ext/standard/tests/strings/bug43927.phpt
Normal file
12
ext/standard/tests/strings/bug43927.phpt
Normal file
@ -0,0 +1,12 @@
|
||||
--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;"
|
Loading…
Reference in New Issue
Block a user