summaryrefslogtreecommitdiff
path: root/tests/output/ob_get_length_error_001.phpt
blob: 8218b5091a4281592a7c0ce2c73e88415c8d5039 (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_get_length()
--FILE--
<?php
/* 
 * proto int ob_get_length(void)
 * Function is implemented in main/output.c
*/ 

$extra_arg = 1;

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


?>
--EXPECTF--

Too many arguments

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