1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
--TEST-- Bug #23489 (ob_start() is broken with method callbacks) --FILE-- <?php class Test { function __construct() { ob_start( array( $this, 'transform' ) ); } function transform($buffer) { return 'success'; } } $t = new Test; ?> failure --EXPECT-- success