summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug25707.phpt
blob: 4954fb1ae5aecf25e0fb1f3b3f50a9f6e00ce504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Bug #25707 (html_entity_decode over-decodes <)
--FILE--
<?php
var_dump(html_entity_decode("&amp;lt;", ENT_COMPAT, 'ISO-8859-1'));
var_dump(html_entity_decode("&amp;#38;", ENT_COMPAT, 'ISO-8859-1'));
var_dump(html_entity_decode("&amp;#38;lt;", ENT_COMPAT, 'ISO-8859-1'));
?>
--EXPECT--
string(4) "&lt;"
string(5) "&#38;"
string(8) "&#38;lt;"