bug69092.2.phpt 425 B

123456789101112131415161718
  1. --TEST--
  2. Bug #69092-2 (Declare Encoding Compile Check Wrong) - multibyte off
  3. --INI--
  4. zend.multibyte=0
  5. --FILE--
  6. <?php
  7. echo "Hi";
  8. function foo() {
  9. declare(encoding="UTF-8");
  10. }
  11. echo "Bye"
  12. ?>
  13. --EXPECTF--
  14. Warning: declare(encoding=...) ignored because Zend multibyte feature is turned off by settings in %s on line %d
  15. Fatal error: Encoding declaration pragma must be the very first statement in the script in %s on line %d