summaryrefslogtreecommitdiff
path: root/tests/output/ob_end_clean_error_001.phpt
blob: 09bacaa081d985fe661afbc8438c06f36b091fc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Test wrong number of arguments for ob_end_clean()
--FILE--
<?php
/*
 * proto bool ob_end_clean(void)
 * Function is implemented in main/output.c
*/

$extra_arg = 1;

echo "\nToo many arguments\n";
var_dump(ob_end_clean($extra_arg));


?>
--EXPECTF--

Too many arguments

Warning: ob_end_clean() expects exactly 0 parameters, 1 given in %s on line 10
NULL