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-- Bug #55082: var_export() doesn't escape properties properly --FILE-- <?php $x..

Decoded Output download

--TEST--
Bug #55082: var_export() doesn't escape properties properly
--FILE--
<?php
    $x = new stdClass();
    $x->{'\'\'} = 7;
    echo var_export($x);
?>
--EXPECT--
(object) array(
   '\'\' => 7,
)

Did this file decode correctly?

Original Code

--TEST--
Bug #55082: var_export() doesn't escape properties properly
--FILE--
<?php
    $x = new stdClass();
    $x->{'\'\\'} = 7;
    echo var_export($x);
?>
--EXPECT--
(object) array(
   '\'\\' => 7,
)

Function Calls

None

Variables

None

Stats

MD5 227d0341abcf4607a425c299f1c5b5f9
Eval Count 0
Decode Time 93 ms