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