Annotation of embedaddon/php/ext/standard/tests/general_functions/getservbyname_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test function getservbyname() 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: Danilo Sanchi (sanchi@grupporetina.com)
8: --FILE--
9: <?php
10: $service = "www";
11: $protocol = "tcp";
12: $extra_arg = 12;
13: var_dump(getservbyname($service, $protocol, $extra_arg ) );
14: var_dump(getservbyname($service));
15: ?>
16: --EXPECTF--
17: Warning: getservbyname() expects exactly 2 parameters, %d given in %s on line %d
18: NULL
19:
20: Warning: getservbyname() expects exactly 2 parameters, %d given in %s on line %d
21: NULL
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>