1--TEST--
2Test function getservbyname() by substituting argument 1 with string values.
3--FILE--
4<?php
5
6
7echo "*** Test substituting argument 1 with string values ***\n";
8
9$protocol = "tcp";
10
11
12$heredoc = <<<EOT
13hello world
14EOT;
15
16$variation_array = array(
17  'string DQ' => "string",
18  'string SQ' => 'string',
19  'mixed case string' => "sTrInG",
20  'heredoc' => $heredoc,
21  );
22
23
24foreach ( $variation_array as $var ) {
25  var_dump(getservbyname( $var ,  $protocol ) );
26}
27?>
28--EXPECTF--
29*** Test substituting argument 1 with string values ***
30bool(false)
31bool(false)
32bool(false)
33bool(false)
34