summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/getservbyname_variation2.phpt
blob: 877c1d12af1a67eedeb40bad942f4fd6bc96c065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--TEST--
Test function getservbyname() by substituting argument 1 with boolean values.
--FILE--
<?php


echo "*** Test substituting argument 1 with boolean values ***\n";

$protocol = "tcp"; 


$variation_array = array(
  'lowercase true' => true,
  'lowercase false' =>false,
  'uppercase TRUE' =>TRUE,
  'uppercase FALSE' =>FALSE,
  );


foreach ( $variation_array as $var ) {
  var_dump(getservbyname( $var ,  $protocol ) );
}
?>
--EXPECTF--
*** Test substituting argument 1 with boolean values ***
bool(false)
bool(false)
bool(false)
bool(false)