mirror of
https://github.com/php/php-src.git
synced 2024-10-16 22:12:33 +00:00
28 lines
636 B
PHP
28 lines
636 B
PHP
--TEST--
|
|
HTML entities
|
|
--INI--
|
|
output_handler=
|
|
unicode.script_encoding=ISO-8859-1
|
|
unicode.output_encoding=ISO-8859-1
|
|
--FILE--
|
|
<?php
|
|
setlocale (LC_CTYPE, "C");
|
|
$sc_encoded = htmlspecialchars ("<>\"&åÄ\n");
|
|
echo $sc_encoded;
|
|
$ent_encoded = htmlentities ("<>\"&åÄ\n");
|
|
echo $ent_encoded;
|
|
echo html_entity_decode($sc_encoded);
|
|
echo html_entity_decode($ent_encoded);
|
|
?>
|
|
--EXPECT--
|
|
<>"&åÄ
|
|
<>"&åÄ
|
|
<>"&åÄ
|
|
<>"&åÄ
|
|
--UEXPECTF--
|
|
Strict Standards: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d
|
|
<>"&åÄ
|
|
<>"&åÄ
|
|
<>"&åÄ
|
|
<>"&åÄ
|