1--TEST-- 2Test wrong number of arguments and wrong arg types for ob_start() 3--FILE-- 4<?php 5/* 6 * Function is implemented in main/output.c 7*/ 8 9Class C { 10 static function f($str) { 11 return $str; 12 } 13} 14 15var_dump(ob_start(array("nonExistent","f"))); 16var_dump(ob_start(array("C","nonExistent"))); 17var_dump(ob_start("C::no")); 18var_dump(ob_start("no")); 19echo "done" 20?> 21--EXPECTF-- 22Warning: ob_start(): class "nonExistent" not found in %s on line %d 23 24Notice: ob_start(): Failed to create buffer in %s on line %d 25bool(false) 26 27Warning: ob_start(): class C does not have a method "nonExistent" in %s on line %d 28 29Notice: ob_start(): Failed to create buffer in %s on line 13 30bool(false) 31 32Warning: ob_start(): class C does not have a method "no" in %s on line %d 33 34Notice: ob_start(): Failed to create buffer in %s on line 14 35bool(false) 36 37Warning: ob_start(): function "no" not found or invalid function name in %s on line %d 38 39Notice: ob_start(): Failed to create buffer in %s on line 15 40bool(false) 41done 42