Annotation of embedaddon/php/ext/standard/tests/strings/htmlentities08.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: htmlentities() test 8 (mbstring / EUC-JP)
! 3: --INI--
! 4: output_handler=
! 5: --SKIPIF--
! 6: <?php
! 7: extension_loaded("mbstring") or die("skip mbstring not available\n");
! 8: mb_internal_encoding('EUC-JP');
! 9: $php_errormsg = NULL;
! 10: @htmlentities("\xa1\xa2\xa1\xa3\xa1\xa4", ENT_QUOTES, '');
! 11: if ($php_errormsg) {
! 12: die("skip EUC-JP chracter set is not supported on this platform.\n");
! 13: }
! 14: ?>
! 15: --FILE--
! 16: <?php
! 17: mb_internal_encoding('EUC-JP');
! 18: print mb_internal_encoding()."\n";
! 19: var_dump(htmlentities("\xa1\xa2\xa1\xa3\xa1\xa4", ENT_QUOTES, ''));
! 20: ?>
! 21: --EXPECT--
! 22: EUC-JP
! 23: string(6) "Ą˘ĄŁĄ¤"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>