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 #72854: PHP Crashes on duplicate destructor call --FILE-- <?php function get..

Decoded Output download

--TEST--
Bug #72854: PHP Crashes on duplicate destructor call
--FILE--
<?php

function get() {
    $t = new stdClass;
    $t->prop = $t;
    return $t;
}

$i = 42;
get()->prop =& $i;

?>
===DONE===
--EXPECT--
===DONE===

Did this file decode correctly?

Original Code

--TEST--
Bug #72854: PHP Crashes on duplicate destructor call
--FILE--
<?php

function get() {
    $t = new stdClass;
    $t->prop = $t;
    return $t;
}

$i = 42;
get()->prop =& $i;

?>
===DONE===
--EXPECT--
===DONE===

Function Calls

None

Variables

$i 42

Stats

MD5 b8a3f81bb318494afb064baa8d56fe41
Eval Count 0
Decode Time 67 ms