mirror of
https://github.com/php/php-src.git
synced 2024-09-28 05:16:12 +00:00
30 lines
550 B
Plaintext
30 lines
550 B
Plaintext
|
--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)
|