mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
13 lines
357 B
Plaintext
13 lines
357 B
Plaintext
|
--TEST--
|
||
|
Bug #25707 (html_entity_decode over-decodes <)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
var_dump(html_entity_decode("&lt;", ENT_COMPAT, 'ISO-8859-1'));
|
||
|
var_dump(html_entity_decode("&#38;", ENT_COMPAT, 'ISO-8859-1'));
|
||
|
var_dump(html_entity_decode("&#38;lt;", ENT_COMPAT, 'ISO-8859-1'));
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
string(4) "<"
|
||
|
string(5) "&"
|
||
|
string(8) "&lt;"
|