Annotation of embedaddon/php/ext/mbstring/tests/mb_output_handler_runtime_ini_alteration-01.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: mb_output_handler() and mbstring.http_output_conv_mimetypes alteration in runtime (1)
                      3: --SKIPIF--
                      4: <?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
                      5: --INI--
                      6: mbstring.internal_encoding=UTF-8
                      7: mbstring.http_output_conv_mimetypes=plain
                      8: --FILE--
                      9: <?php
                     10: mb_http_output("EUC-JP");
                     11: ini_set('mbstring.http_output_conv_mimetypes', 'text');
                     12: header("Content-Type: text/html");
                     13: ob_start();
                     14: ob_start('mb_output_handler');
                     15: echo "ใƒ†ใ‚นใƒˆ";
                     16: ob_end_flush();
                     17: var_dump(bin2hex(ob_get_clean()));
                     18: ?>
                     19: --EXPECT--
                     20: string(12) "a5c6a5b9a5c8"

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>