1--TEST-- 2Test function getservbyname() by substituting argument 2 with boolean values. 3--SKIPIF-- 4<?php 5if(PHP_OS == 'Darwin') { 6 die("skip.. Mac OS X is fine with NULLs in getservbyname"); 7} 8?> 9--FILE-- 10<?php 11 12 13echo "*** Test substituting argument 2 with boolean values ***\n"; 14 15$service = "www"; 16 17$variation_array = array( 18 'lowercase true' => true, 19 'lowercase false' =>false, 20 'uppercase TRUE' =>TRUE, 21 'uppercase FALSE' =>FALSE, 22 ); 23 24 25foreach ( $variation_array as $var ) { 26 var_dump(getservbyname( $service, $var ) ); 27} 28?> 29--EXPECT-- 30*** Test substituting argument 2 with boolean values *** 31bool(false) 32bool(false) 33bool(false) 34bool(false) 35