Skip to content
Newer
Older
100644 19 lines (17 sloc) 254 Bytes
f0fc522 @derickr Fixing output buffers, take 1.
authored Mar 12, 2012
1 <?php
2 function callback($buffer)
3 {
4 // replace all the apples with oranges
5 return "[$buffer]\n";
6 }
7 ob_start('callback');
8
9 function foo()
10 {
11 // empty func
12 echo "again\n";
13 }
14 xdebug_break();
15 trigger_error('test');
16 echo "test\n";
17 foo();
18 ?>
Something went wrong with that request. Please try again.