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