-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/src/php/ext/standard/tests/general_functions/
File Upload :
Current File : //usr/src/php/ext/standard/tests/general_functions/getservbyname_variation7.phpt

--TEST--
Test function getservbyname() by substituting argument 1 with string values.
--FILE--
<?php


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

$protocol = "tcp";


$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( $var ,  $protocol ) );
}
?>
--EXPECTF--
*** Test substituting argument 1 with string values ***
bool(false)
bool(false)
bool(false)
bool(false)

Copyright © 2017 || Recoded By Mr.Bumblebee