Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Test function getservbyname() by substituting argument 1 with boolean values. --F..

Decoded Output download

*** Test substituting argument 1 with boolean values ***

Did this file decode correctly?

Original Code

--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 ) );
}
?>
--EXPECT--
*** Test substituting argument 1 with boolean values ***
bool(false)
bool(false)
bool(false)
bool(false)

Function Calls

None

Variables

$protocol tcp

Stats

MD5 334afc592c3e18620324889cfed56faf
Eval Count 0
Decode Time 98 ms