1--TEST-- 2Test get_loaded_extensions() function : error conditions 3--FILE-- 4<?php 5/* Prototype : array get_loaded_extensions ([ bool $zend_extensions= false ] ) 6 * Description: Returns an array with the names of all modules compiled and loaded 7 * Source code: Zend/zend_builtin_functions.c 8 */ 9 10echo "*** Testing get_loaded_extensions() : error conditions ***\n"; 11 12echo "\n-- Testing get_loaded_extensions() function with more than expected no. of arguments --\n"; 13$res = fopen(__FILE__, "r"); 14$extra_arg = 10; 15var_dump( get_resource_type(true, $extra_arg) ); 16 17?> 18===DONE=== 19--EXPECTF-- 20*** Testing get_loaded_extensions() : error conditions *** 21 22-- Testing get_loaded_extensions() function with more than expected no. of arguments -- 23 24Warning: get_resource_type() expects exactly 1 parameter, 2 given in %s on line %d 25NULL 26===DONE===