summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/getservbyname_variation14.phpt
blob: 8e94bb95572cbf5b7056fc4317bd69e963602ddc (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
30
31
32
33
--TEST--
Test function getservbyname() by substituting argument 2 with string values.
--FILE--
<?php


echo "*** Test substituting argument 2 with string values ***\n";

$service = "www";


$heredoc = <<<EOT
hello world
EOT;

$variation_array = array(
  'string DQ' => "string",
  'string SQ' => 'string',
  'mixed case string' => "sTrInG",
  'heredoc' => $heredoc,
  );


foreach ( $variation_array as $var ) {
  var_dump(getservbyname( $service, $var  ) );
}
?>
--EXPECT--
*** Test substituting argument 2 with string values ***
bool(false)
bool(false)
bool(false)
bool(false)