mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
13 lines
357 B
PHP
13 lines
357 B
PHP
--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;"
|