import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-general_functions / get_resource_type_error.php
blobe2a9e21dd1e83ac64f0a71468abb4e77595ecc98
1 <?php
2 /* Prototype : string get_resource_type ( resource $handle )
3 * Description: Returns the resource type
4 * Source code: Zend/zend_builtin_functions.c
5 */
7 echo "*** Testing get_resource_type() : error conditions ***\n";
9 echo "\n-- Testing get_resource_type() function with Zero arguments --\n";
10 var_dump( get_resource_type() );
12 echo "\n-- Testing get_resource_type() function with more than expected no. of arguments --\n";
13 $res = fopen(__FILE__, "r");
14 $extra_arg = 10;
15 var_dump( get_resource_type($res, $extra_arg) );
18 ===DONE===