diff options
| author | Marcus Boerger <helly@php.net> | 2004-08-02 08:27:57 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2004-08-02 08:27:57 +0000 |
| commit | 5f0433db83663968d20c8ab02b875aad309c544d (patch) | |
| tree | 264bfc076e268e6dfd3379e361c0380c9480b314 /ext/mbstring/tests | |
| parent | 58901970240e7a9ccc0ecf9510d96bb8f7dcac59 (diff) | |
| download | php-git-5f0433db83663968d20c8ab02b875aad309c544d.tar.gz | |
MFB: Enforce protocol on magic methods/functions
Diffstat (limited to 'ext/mbstring/tests')
| -rw-r--r-- | ext/mbstring/tests/htmlent.phpt | 15 |
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"); // @... are must be decoded on input these are not reencoded on output. // If you see @AB on output this means input encoding fails. // If you do not see ä... 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=&&;&@AB€‚äöü€⟨⟩"); -echo "test='$test'"; +<?php mb_parse_str("test=@AB€‚äöü€⟨⟩", $test); +print_r($test['test']); ?> +===DONE=== --EXPECT-- HTML-ENTITIES>UTF-8>HTML-ENTITIES -test='&&;&@AB€‚äöü€⟨⟩'
\ No newline at end of file +test='&&;&@AB€‚äöü€⟨⟩' +===DONE=== |
