htmlentities09.phpt 526 B

123456789101112131415161718
  1. --TEST--
  2. htmlentities() test 9 (mbstring / Shift_JIS)
  3. --INI--
  4. output_handler=
  5. internal_encoding=Shift_JIS
  6. --EXTENSIONS--
  7. mbstring
  8. --FILE--
  9. <?php
  10. mb_internal_encoding('Shift_JIS');
  11. print mb_internal_encoding()."\n";
  12. var_dump(bin2hex(htmlentities("\x81\x41\x81\x42\x81\x43", ENT_QUOTES, '')));
  13. ?>
  14. --EXPECTF--
  15. SJIS
  16. Notice: htmlentities(): Only basic entities substitution is supported for multi-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s line %d
  17. string(12) "814181428143"