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 ArrayObject::uksort() function : wrong arg count --FILE-- <?php /* Sort the ..

Decoded Output download

--TEST--
Test ArrayObject::uksort() function : wrong arg count
--FILE--
<?php
/* Sort the entries by key using user defined function.
 * Source code: ext/spl/spl_array.c
 * Alias to functions:
 */

$ao = new ArrayObject();

try {
    $ao->uksort();
} catch (ArgumentCountError $e) {
    echo $e->getMessage() . "
";
}

try {
    $ao->uksort(1,2);
} catch (ArgumentCountError $e) {
    echo $e->getMessage() . "
";
}
?>
--EXPECT--
ArrayObject::uksort() expects exactly 1 argument, 0 given
ArrayObject::uksort() expects exactly 1 argument, 2 given

Did this file decode correctly?

Original Code

--TEST--
Test ArrayObject::uksort() function : wrong arg count
--FILE--
<?php
/* Sort the entries by key using user defined function.
 * Source code: ext/spl/spl_array.c
 * Alias to functions:
 */

$ao = new ArrayObject();

try {
    $ao->uksort();
} catch (ArgumentCountError $e) {
    echo $e->getMessage() . "\n";
}

try {
    $ao->uksort(1,2);
} catch (ArgumentCountError $e) {
    echo $e->getMessage() . "\n";
}
?>
--EXPECT--
ArrayObject::uksort() expects exactly 1 argument, 0 given
ArrayObject::uksort() expects exactly 1 argument, 2 given

Function Calls

None

Variables

None

Stats

MD5 87b24b28f3e8a155fd4b1b2e6fd4ec86
Eval Count 0
Decode Time 81 ms