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 socket_addrinfo_lookup() --EXTENSIONS-- sockets --FILE-- <?php try { $ad..

Decoded Output download

--TEST--
Test socket_addrinfo_lookup()
--EXTENSIONS--
sockets
--FILE--
<?php
try {
    $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
        'ai_family' => AF_INET,
        'ai_socktype' => SOCK_DGRAM,
        'invalid' => null,
    ));
    var_dump($addrinfo[0]);
} catch (\ValueError $e) {
    echo $e->getMessage(), \PHP_EOL;
}
?>
--EXPECT--
socket_addrinfo_lookup(): Argument #3 ($hints) must only contain array keys "ai_flags", "ai_socktype", "ai_protocol", or "ai_family"

Did this file decode correctly?

Original Code

--TEST--
Test socket_addrinfo_lookup()
--EXTENSIONS--
sockets
--FILE--
<?php
try {
    $addrinfo = socket_addrinfo_lookup('127.0.0.1', 2000, array(
        'ai_family' => AF_INET,
        'ai_socktype' => SOCK_DGRAM,
        'invalid' => null,
    ));
    var_dump($addrinfo[0]);
} catch (\ValueError $e) {
    echo $e->getMessage(), \PHP_EOL;
}
?>
--EXPECT--
socket_addrinfo_lookup(): Argument #3 ($hints) must only contain array keys "ai_flags", "ai_socktype", "ai_protocol", or "ai_family"

Function Calls

None

Variables

None

Stats

MD5 646714ff851fca68be08a17077cf6590
Eval Count 0
Decode Time 85 ms