Annotation of embedaddon/php/tests/lang/func_get_arg.004.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: func_get_arg on non-existent arg
        !             3: --FILE--
        !             4: <?php
        !             5: 
        !             6: function foo($a)
        !             7: {
        !             8:        var_dump(func_get_arg(2));      
        !             9: }
        !            10: foo(2, 3);
        !            11: echo "\n";
        !            12: 
        !            13: ?>
        !            14: --EXPECTF--
        !            15: Warning: func_get_arg():  Argument 2 not passed to function in %s on line %d
        !            16: bool(false)

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