Annotation of embedaddon/php/ext/standard/tests/general_functions/get_loaded_extensions_error.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test 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: 
        !            10: echo "*** Testing get_loaded_extensions() : error conditions ***\n";
        !            11: 
        !            12: echo "\n-- Testing get_loaded_extensions() function with more than expected no. of arguments --\n";
        !            13: $res = fopen(__FILE__, "r");
        !            14: $extra_arg = 10;
        !            15: var_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: 
        !            24: Warning: get_resource_type() expects exactly 1 parameter, 2 given in %s on line %d
        !            25: NULL
        !            26: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>