File size: 316 Bytes
1e94262
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
ob_start(): ensure even fatal error test is affected by output buffering.
--FILE--
<?php

function f() {
    return "I have stolen your output";
}

ob_start('f');
cause_fatal_error(); // call undefined function
ob_end_flush();

echo "done (you shouldn't see this)";

?>
--EXPECT--
I have stolen your output