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-- parse_str() should not read uninitialized memory when checking for $this --FILE--..

Decoded Output download

--TEST--
parse_str() should not read uninitialized memory when checking for $this
--FILE--
<?php

function test() {
    // strlen("abcd") == 4 is relevant
    parse_str('abcd=1', $array);
    var_dump($array);
}

test();

?>
--EXPECT--
array(1) {
  ["abcd"]=>
  string(1) "1"
}

Did this file decode correctly?

Original Code

--TEST--
parse_str() should not read uninitialized memory when checking for $this
--FILE--
<?php

function test() {
    // strlen("abcd") == 4 is relevant
    parse_str('abcd=1', $array);
    var_dump($array);
}

test();

?>
--EXPECT--
array(1) {
  ["abcd"]=>
  string(1) "1"
}

Function Calls

test 1
parse_str 1

Variables

None

Stats

MD5 11c73bf1dbdc03e387cbc8f16777ab84
Eval Count 0
Decode Time 86 ms