xref: /PHP-8.4/tests/output/ob_011.phpt (revision d59709d1)
1--TEST--
2output buffering - fatalism
3--SKIPIF--
4<?php
5if (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
11function obh($s)
12{
13    return ob_get_flush();
14}
15ob_start("obh");
16echo "foo\n";
17?>
18--EXPECTF--
19Fatal error: ob_get_flush(): Cannot use output buffering in output buffering display handlers in %sob_011.php on line %d
20