1--TEST-- 2output buffering - failure 3--FILE-- 4<?php 5ob_start("str_rot13", 1); 6echo "foo\n"; 7// str_rot13 expects 1 param and returns NULL when passed 2 params. 8// It is invoked with 2 params when used as an OB callback. 9// Therefore, there will be no data in the buffer. This is expected: see bug 46900. 10ob_end_flush(); 11 12// Show the error. 13print_r(error_get_last()); 14?> 15--EXPECTF-- 16Array 17( 18 [type] => 2 19 [message] => str_rot13() expects exactly 1 parameter, 2 given 20 [file] => %s 21 [line] => 7 22) 23