mirror of
https://github.com/php/php-src.git
synced 2024-10-16 14:02:37 +00:00
87fac43ac0
- html_translation_table and setlocale tests are no longer relevant - there are a number of ANSI-encoded files. Is this deliberate?
13 lines
360 B
PHP
13 lines
360 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--
|
|
unicode(4) "<"
|
|
unicode(5) "&"
|
|
unicode(8) "&lt;"
|