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

1.1     ! misho       1: --TEST--
        !             2: Test function getservbyport() by calling it more than or less than its expected arguments
        !             3: --CREDITS--
        !             4: Italian PHP TestFest 2009 Cesena 19-20-21 june
        !             5: Fabio Fabbrucci (fabbrucci@grupporetina.com)
        !             6: Michele Orselli (mo@ideato.it)
        !             7: Simone Gentili (sensorario@gmail.com)
        !             8: --FILE--
        !             9: <?php
        !            10: $port = 80;
        !            11: $protocol = "tcp"; 
        !            12: $extra_arg = 12;
        !            13: var_dump(getservbyport( $port, $protocol, $extra_arg ) );
        !            14: var_dump(getservbyport($port));
        !            15: ?>
        !            16: --EXPECTF--
        !            17: Warning: getservbyport() expects exactly 2 parameters, %d given in %s on line %d
        !            18: NULL
        !            19: 
        !            20: Warning: getservbyport() expects exactly 2 parameters, %d given in %s on line %d
        !            21: NULL

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