summaryrefslogtreecommitdiff
path: root/tests/output/ob_start_error_001.phpt
blob: 98c348fe4a580f1d8488fb5e6bb6b56c4c3a0fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
Test wrong number of arguments and wrong arg types for ob_start()
--FILE--
<?php
/*
 * Function is implemented in main/output.c
*/

function justPrint($str) {
    return $str;
}

$arg_1 = "justPrint";
$arg_2 = 0;
$arg_3 = false;
$extra_arg = 1;

echo "\nArg 1 wrong type\n";
var_dump(ob_start(1.5));

?>
--EXPECTF--
Arg 1 wrong type

Warning: ob_start(): no array or string given in %s on line %d

Notice: ob_start(): Failed to create buffer in %s on line %d
bool(false)