ob_011.phpt 466 B

12345678910111213141516171819
  1. --TEST--
  2. output buffering - fatalism
  3. --SKIPIF--
  4. <?php
  5. if (PHP_OS_FAMILY === 'Windows' && ini_get('opcache.jit') && ini_get('opcache.jit_buffer_size') && !PHP_DEBUG) {
  6. die('xfail crashes on Windows with JITted release builds');
  7. }
  8. ?>
  9. --FILE--
  10. <?php
  11. function obh($s)
  12. {
  13. return ob_get_flush();
  14. }
  15. ob_start("obh");
  16. echo "foo\n";
  17. ?>
  18. --EXPECTF--
  19. Fatal error: ob_get_flush(): Cannot use output buffering in output buffering display handlers in %sob_011.php on line %d