1--TEST--
2Test function getservbyname() by substituting argument 2 with float values.
3--FILE--
4<?php
5
6
7echo "*** Test substituting argument 2 with float values ***\n";
8
9$service = "www";
10
11$variation_array = array(
12  'float 10.5' => 10.5,
13  'float -10.5' => -10.5,
14  'float 12.3456789000e10' => 12.3456789000e10,
15  'float -12.3456789000e10' => -12.3456789000e10,
16  'float .5' => .5,
17  );
18
19
20foreach ( $variation_array as $var ) {
21  var_dump(getservbyname( $service, $var  ) );
22}
23?>
24--EXPECTF--
25*** Test substituting argument 2 with float values ***
26bool(false)
27bool(false)
28bool(false)
29bool(false)
30bool(false)
31