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 SplDoublyLinkedList::add throws an exception with an invalid offset ar..

Decoded Output download

--TEST--
Check that SplDoublyLinkedList::add throws an exception with an invalid offset argument
--FILE--
<?php
try {
    $dll = new SplDoublyLinkedList();
    var_dump($dll->add(12,'Offset 12 should not exist'));
} catch (OutOfRangeException $e) {
    echo "Exception: ".$e->getMessage()."
";
}
?>
--EXPECT--
Exception: SplDoublyLinkedList::add(): Argument #1 ($index) is out of range

Did this file decode correctly?

Original Code

--TEST--
Check that SplDoublyLinkedList::add throws an exception with an invalid offset argument
--FILE--
<?php
try {
    $dll = new SplDoublyLinkedList();
    var_dump($dll->add(12,'Offset 12 should not exist'));
} catch (OutOfRangeException $e) {
    echo "Exception: ".$e->getMessage()."\n";
}
?>
--EXPECT--
Exception: SplDoublyLinkedList::add(): Argument #1 ($index) is out of range

Function Calls

None

Variables

None

Stats

MD5 1806cde2444ff3730b20e86a4b83e59c
Eval Count 0
Decode Time 83 ms