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-- Check that SplObjectStorage::offsetGet throws exception when non-existing object ..

Decoded Output download

--TEST--
Check that SplObjectStorage::offsetGet throws exception when non-existing object is requested
--CREDITS--
PHPNW Testfest 2009 - Simon Westcott ([email protected])
--FILE--
<?php

$s = new SplObjectStorage();
$o1 = new stdClass();

try {
    $s->offsetGet($o1);
} catch (UnexpectedValueException $e) {
    echo $e->getMessage();
}

?>
--EXPECT--
Object not found

Did this file decode correctly?

Original Code

--TEST--
Check that SplObjectStorage::offsetGet throws exception when non-existing object is requested
--CREDITS--
PHPNW Testfest 2009 - Simon Westcott ([email protected])
--FILE--
<?php

$s = new SplObjectStorage();
$o1 = new stdClass();

try {
    $s->offsetGet($o1);
} catch (UnexpectedValueException $e) {
    echo $e->getMessage();
}

?>
--EXPECT--
Object not found

Function Calls

None

Variables

None

Stats

MD5 8e9128402b15f348d5fef558f8ee8ae2
Eval Count 0
Decode Time 110 ms