summaryrefslogtreecommitdiff
path: root/tests/strings
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-03-15 21:03:08 +0000
committerWez Furlong <wez@php.net>2002-03-15 21:03:08 +0000
commit0f65280cb5118d8c1a85db6626f7be365f3d1b26 (patch)
tree931b09acc5041eb771017e3ebf9ecb9aa833d722 /tests/strings
parent3a1ebd4f519facbd7ec769304857aad40e49cf1c (diff)
downloadphp-git-0f65280cb5118d8c1a85db6626f7be365f3d1b26.tar.gz
New PHP streams...
Diffstat (limited to 'tests/strings')
-rw-r--r--tests/strings/003.phpt10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/strings/003.phpt b/tests/strings/003.phpt
index f7d754988b..97e3aaa38f 100644
--- a/tests/strings/003.phpt
+++ b/tests/strings/003.phpt
@@ -5,9 +5,15 @@ HTML entities
--FILE--
<?php
setlocale (LC_CTYPE, "C");
-echo htmlspecialchars ("<>\"&εΔ\n");
-echo htmlentities ("<>\"&εΔ\n");
+$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--
&lt;&gt;&quot;&amp;εΔ
&lt;&gt;&quot;&amp;&aring;&Auml;
+<>"&εΔ
+<>"&εΔ