blob: fbfdda23851b51e75f04dfcf51afc937ddfe3c1a (
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
29
30
31
|
--TEST--
stream_filter_register() and invalid arguments
--FILE--
<?php
var_dump(stream_filter_register("", ""));
var_dump(stream_filter_register("test", ""));
var_dump(stream_filter_register("", "test"));
var_dump(stream_filter_register("------", "nonexistentclass"));
var_dump(stream_filter_register(array(), "aa"));
var_dump(stream_filter_register("", array()));
echo "Done\n";
?>
--EXPECTF--
Warning: stream_filter_register(): Filter name cannot be empty in %s on line %d
bool(false)
Warning: stream_filter_register(): Class name cannot be empty in %s on line %d
bool(false)
Warning: stream_filter_register(): Filter name cannot be empty in %s on line %d
bool(false)
bool(true)
Warning: stream_filter_register() expects parameter 1 to be string, array given in %s on line %d
bool(false)
Warning: stream_filter_register() expects parameter 2 to be string, array given in %s on line %d
bool(false)
Done
|