multibyte_encoding_002.phpt 426 B

12345678910111213141516171819202122
  1. --TEST--
  2. Zend Multibyte and UTF-8 BOM
  3. --SKIPIF--
  4. <?php
  5. if (!in_array("zend.detect_unicode", array_keys(ini_get_all()))) {
  6. die("skip Requires configure --enable-zend-multibyte option");
  7. }
  8. if (!extension_loaded("mbstring")) {
  9. die("skip Requires mbstring extension");
  10. }
  11. ?>
  12. --INI--
  13. zend.multibyte=1
  14. mbstring.internal_encoding=iso-8859-1
  15. --FILE--
  16. <?php
  17. print "Hello World\n";
  18. ?>
  19. ===DONE===
  20. --EXPECT--
  21. Hello World
  22. ===DONE===