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-- SPL: DoublyLinkedList: memory leak when iterator pointer isn't at the last elemen..
Decoded Output download
--TEST--
SPL: DoublyLinkedList: memory leak when iterator pointer isn't at the last element
--FILE--
<?php
$dll = new SplDoublyLinkedList();
$dll->push(1);
$dll->push(2);
$dll->push(3);
$dll->push(4);
$dll->rewind();
echo $dll->current()."
";
$dll->next();
$dll->next();
echo $dll->current()."
";
?>
--EXPECT--
1
3
Did this file decode correctly?
Original Code
--TEST--
SPL: DoublyLinkedList: memory leak when iterator pointer isn't at the last element
--FILE--
<?php
$dll = new SplDoublyLinkedList();
$dll->push(1);
$dll->push(2);
$dll->push(3);
$dll->push(4);
$dll->rewind();
echo $dll->current()."\n";
$dll->next();
$dll->next();
echo $dll->current()."\n";
?>
--EXPECT--
1
3
Function Calls
None |
Stats
MD5 | d268e93c32df2b201b1c63c0fd88308f |
Eval Count | 0 |
Decode Time | 81 ms |