summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-08-02 08:27:57 +0000
committerMarcus Boerger <helly@php.net>2004-08-02 08:27:57 +0000
commit5f0433db83663968d20c8ab02b875aad309c544d (patch)
tree264bfc076e268e6dfd3379e361c0380c9480b314 /ext/mbstring/tests
parent58901970240e7a9ccc0ecf9510d96bb8f7dcac59 (diff)
downloadphp-git-5f0433db83663968d20c8ab02b875aad309c544d.tar.gz
MFB: Enforce protocol on magic methods/functions
Diffstat (limited to 'ext/mbstring/tests')
-rw-r--r--ext/mbstring/tests/htmlent.phpt15
1 files changed, 9 insertions, 6 deletions
diff --git a/ext/mbstring/tests/htmlent.phpt b/ext/mbstring/tests/htmlent.phpt
index ca7d64ba41..e625578e04 100644
--- a/ext/mbstring/tests/htmlent.phpt
+++ b/ext/mbstring/tests/htmlent.phpt
@@ -6,18 +6,19 @@ HTML input/output
extension_loaded('mbstring') or die('skip mbstring not available');
?>
--INI--
+output_buffering=4096
output_handler=mb_output_handler
zlib.output_compression=
-arg_separator.input="x"
+arg_separator.input=x
error_reporting=0
mbstring.http_input=HTML-ENTITIES
-mbstring.internal_encoding=UTF8
+mbstring.internal_encoding=UTF-8
mbstring.http_output=HTML-ENTITIES
mbstring.encoding_translation=1
--FILE--
<?php
// enable output encoding through output handler
-ob_start("mb_output_handler");
+//ob_start("mb_output_handler");
// &#64... are must be decoded on input these are not reencoded on output.
// If you see &#64;&#65;&#66; on output this means input encoding fails.
// If you do not see &auml;... on output this means output encoding fails.
@@ -27,9 +28,11 @@ ob_start("mb_output_handler");
?>
<?php echo mb_http_input('l').'>'.mb_internal_encoding().'>'.mb_http_output();?>
-<?php mb_parse_str("test=&&;&&#64;&#65;&#66;&#128;&#129;&#130;&auml;&ouml;&uuml;&euro;&lang;&rang;");
-echo "test='$test'";
+<?php mb_parse_str("test=&#64;&#65;&#66;&#128;&#129;&#130;&auml;&ouml;&uuml;&euro;&lang;&rang;", $test);
+print_r($test['test']);
?>
+===DONE===
--EXPECT--
HTML-ENTITIES>UTF-8>HTML-ENTITIES
-test='&&;&@AB&#128;&#129;&#130;&auml;&ouml;&uuml;&euro;&lang;&rang;' \ No newline at end of file
+test='&&;&@AB&#128;&#129;&#130;&auml;&ouml;&uuml;&euro;&lang;&rang;'
+===DONE===