Annotation of embedaddon/php/ext/standard/tests/general_functions/getservbyname_variation7.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Test function getservbyname() by substituting argument 1 with string values.
! 3: --FILE--
! 4: <?php
! 5:
! 6:
! 7: echo "*** Test substituting argument 1 with string values ***\n";
! 8:
! 9: $protocol = "tcp";
! 10:
! 11:
! 12: $heredoc = <<<EOT
! 13: hello world
! 14: EOT;
! 15:
! 16: $variation_array = array(
! 17: 'string DQ' => "string",
! 18: 'string SQ' => 'string',
! 19: 'mixed case string' => "sTrInG",
! 20: 'heredoc' => $heredoc,
! 21: );
! 22:
! 23:
! 24: foreach ( $variation_array as $var ) {
! 25: var_dump(getservbyname( $var , $protocol ) );
! 26: }
! 27: ?>
! 28: --EXPECTF--
! 29: *** Test substituting argument 1 with string values ***
! 30: bool(false)
! 31: bool(false)
! 32: bool(false)
! 33: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>