1--TEST--
2Test addcslashes() function (errors)
3--INI--
4precision=14
5--FILE--
6<?php
7
8echo "\n*** Testing error conditions ***\n";
9/* zero argument */
10var_dump( addcslashes() );
11
12/* unexpected arguments */
13var_dump( addcslashes("foo[]") );
14var_dump( addcslashes('foo[]', "o", "foo") );
15
16echo "Done\n";
17
18?>
19--EXPECTF--
20*** Testing error conditions ***
21
22Warning: addcslashes() expects exactly 2 parameters, 0 given in %s on line %d
23NULL
24
25Warning: addcslashes() expects exactly 2 parameters, 1 given in %s on line %d
26NULL
27
28Warning: addcslashes() expects exactly 2 parameters, 3 given in %s on line %d
29NULL
30Done
31