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-- ext/sockets - socket_getsockname - basic test --CREDITS-- Florian Anderiasch fa@p..
Decoded Output download
--TEST--
ext/sockets - socket_getsockname - basic test
--CREDITS--
Florian Anderiasch
[email protected]
--EXTENSIONS--
sockets
--FILE--
<?php
$s_c = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
$s_bind = socket_bind($s_c, '0.0.0.0');
var_dump($s_bind);
// Connect to destination address
$s_conn = socket_getsockname($s_c, $ip, $port);
var_dump($s_conn);
var_dump($ip);
var_dump($port);
socket_close($s_c);
?>
--EXPECTF--
bool(true)
bool(true)
string(7) "0.0.0.0"
int(%i)
Did this file decode correctly?
Original Code
--TEST--
ext/sockets - socket_getsockname - basic test
--CREDITS--
Florian Anderiasch
[email protected]
--EXTENSIONS--
sockets
--FILE--
<?php
$s_c = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
$s_bind = socket_bind($s_c, '0.0.0.0');
var_dump($s_bind);
// Connect to destination address
$s_conn = socket_getsockname($s_c, $ip, $port);
var_dump($s_conn);
var_dump($ip);
var_dump($port);
socket_close($s_c);
?>
--EXPECTF--
bool(true)
bool(true)
string(7) "0.0.0.0"
int(%i)
Function Calls
None |
Stats
MD5 | a9df03dec62a830e35b4905841392014 |
Eval Count | 0 |
Decode Time | 103 ms |