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 #61453: SplObjectStorage does not identify objects correctly --FILE-- <?php $..

Decoded Output download

--TEST--
Bug #61453:	SplObjectStorage does not identify objects correctly
--FILE--
<?php
$limit = 1000;
$objects = new SplObjectStorage;
for($i = 0; $i < $limit; $i++){
    $object = new StdClass;

    if(isset($objects[$object])){
        die("this should never happen, but did after $i iteration");
    }

    $objects[$object] = 1;
}
?>
==DONE==
--EXPECT--
==DONE==

Did this file decode correctly?

Original Code

--TEST--
Bug #61453:	SplObjectStorage does not identify objects correctly
--FILE--
<?php
$limit = 1000;
$objects = new SplObjectStorage;
for($i = 0; $i < $limit; $i++){
    $object = new StdClass;

    if(isset($objects[$object])){
        die("this should never happen, but did after $i iteration");
    }

    $objects[$object] = 1;
}
?>
==DONE==
--EXPECT--
==DONE==

Function Calls

None

Variables

$limit 1000

Stats

MD5 3f1f69dfa216f0c859ce7d10295a8e40
Eval Count 0
Decode Time 87 ms