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 extract() function - error condition - Invalid prefix. --FILE-- <?php $a = [..

Decoded Output download

--TEST--
Test extract() function - error condition - Invalid prefix.
--FILE--
<?php
$a = ["1" => "one", "2" => "two", "3" => "three", "4" => "four", "5" => "five"];

try {
    extract($a, EXTR_PREFIX_ALL, '85bogus');
} catch (\ValueError $e) {
    echo $e->getMessage();
}
?>
--EXPECT--
extract(): Argument #3 ($prefix) must be a valid identifier

Did this file decode correctly?

Original Code

--TEST--
Test extract() function - error condition - Invalid prefix.
--FILE--
<?php
$a = ["1" => "one", "2" => "two", "3" => "three", "4" => "four", "5" => "five"];

try {
    extract($a, EXTR_PREFIX_ALL, '85bogus');
} catch (\ValueError $e) {
    echo $e->getMessage();
}
?>
--EXPECT--
extract(): Argument #3 ($prefix) must be a valid identifier

Function Calls

None

Variables

None

Stats

MD5 ac0dcf1e0d22d7776d4a684948c582a0
Eval Count 0
Decode Time 82 ms