Annotation of embedaddon/php/ext/standard/tests/general_functions/getservbyname_variation4.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test function getservbyname() by substituting argument 1 with float values.
3: --FILE--
4: <?php
5:
6:
7: echo "*** Test substituting argument 1 with float values ***\n";
8:
9: $protocol = "tcp";
10:
11:
12: $variation_array = array(
13: 'float 10.5' => 10.5,
14: 'float -10.5' => -10.5,
15: 'float 12.3456789000e10' => 12.3456789000e10,
16: 'float -12.3456789000e10' => -12.3456789000e10,
17: 'float .5' => .5,
18: );
19:
20:
21: foreach ( $variation_array as $var ) {
22: var_dump(getservbyname( $var , $protocol ) );
23: }
24: ?>
25: --EXPECTF--
26: *** Test substituting argument 1 with float values ***
27: bool(false)
28: bool(false)
29: bool(false)
30: bool(false)
31: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>