zend_multibyte-09.phpt 522 B

1234567891011121314151617181920
  1. --TEST--
  2. zend multibyte (9)
  3. --SKIPIF--
  4. --XFAIL--
  5. https://bugs.php.net/bug.php?id=66582
  6. --INI--
  7. error_reporting=E_ALL & ~E_DEPRECATED
  8. zend.multibyte=On
  9. zend.script_encoding=cp1251
  10. mbstring.internal_encoding=UTF-8
  11. --FILE--
  12. <?php
  13. declare(encoding="EUC-JP");
  14. // forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it
  15. // back to UTF-8. There should be only a pair of consecutive bytes that is
  16. // valid EUC-encoded character "鴻".
  17. var_dump(bin2hex("テスト"));
  18. ?>
  19. --EXPECT--
  20. string(16) "3f3f3fe9b4bb3f3f"