htmlentities14.phpt 527 B

1234567891011121314151617
  1. --TEST--
  2. htmlentities() test 14 (default_charset / Shift_JIS)
  3. --INI--
  4. output_handler=
  5. mbstring.internal_encoding=pass
  6. default_charset=Shift_JIS
  7. filter.default=unsafe_raw
  8. --FILE--
  9. <?php
  10. print ini_get('default_charset')."\n";
  11. var_dump(htmlentities("\x81\x41\x81\x42\x81\x43", ENT_QUOTES, ''));
  12. ?>
  13. --EXPECTF--
  14. Shift_JIS
  15. Strict Standards: htmlentities(): Only basic entities substitution is supported for multi-byte encodings other than UTF-8; functionality is equivalent to htmlspecialchars in %s on line %d
  16. string(6) "�A�B�C"