2
Test get_resource_type() function : error conditions
5
/* Prototype : string get_resource_type ( resource $handle )
6
* Description: Returns the resource type
7
* Source code: Zend/zend_builtin_functions.c
10
echo "*** Testing get_resource_type() : error conditions ***\n";
12
echo "\n-- Testing get_resource_type() function with Zero arguments --\n";
13
var_dump( get_resource_type() );
15
echo "\n-- Testing get_resource_type() function with more than expected no. of arguments --\n";
16
$res = fopen(__FILE__, "r");
18
var_dump( get_resource_type($res, $extra_arg) );
23
*** Testing get_resource_type() : error conditions ***
25
-- Testing get_resource_type() function with Zero arguments --
27
Warning: Wrong parameter count for get_resource_type() in %s on line %d
30
-- Testing get_resource_type() function with more than expected no. of arguments --
32
Warning: Wrong parameter count for get_resource_type() in %s on line %d
b'\\ No newline at end of file'