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-- getprotobyname function basic test --CREDITS-- edgarsandi - <edgar.r.sandi@gmail...
Decoded Output download
--TEST--
getprotobyname function basic test
--CREDITS--
edgarsandi - <[email protected]>
--SKIPIF--
<?php
if(in_array(PHP_OS_FAMILY, ['BSD', 'Darwin', 'Solaris', 'Linux'])){
if (!file_exists("/etc/protocols")) die("skip reason: missing /etc/protocols");
}
if (getenv('SKIP_MSAN')) die('skip msan missing interceptor for getprotobyname()');
?>
--FILE--
<?php
var_dump(getprotobyname('tcp'));
?>
--EXPECT--
int(6)
Did this file decode correctly?
Original Code
--TEST--
getprotobyname function basic test
--CREDITS--
edgarsandi - <[email protected]>
--SKIPIF--
<?php
if(in_array(PHP_OS_FAMILY, ['BSD', 'Darwin', 'Solaris', 'Linux'])){
if (!file_exists("/etc/protocols")) die("skip reason: missing /etc/protocols");
}
if (getenv('SKIP_MSAN')) die('skip msan missing interceptor for getprotobyname()');
?>
--FILE--
<?php
var_dump(getprotobyname('tcp'));
?>
--EXPECT--
int(6)
Function Calls
None |
Stats
MD5 | fcb70f53530af5da6ec30b2b8a7110e2 |
Eval Count | 0 |
Decode Time | 87 ms |