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 #81142 (memory leak when unserialize()ing associative array) --FILE-- <?php $..

Decoded Output download

--TEST--
Bug #81142 (memory leak when unserialize()ing associative array)
--FILE--
<?php
$mem0 = memory_get_usage();
$ctr = 0;
unserialize(serialize(["foo_$ctr" => 1]));
$mem1 = memory_get_usage();
var_dump($mem1 - $mem0);
?>
--EXPECT--
int(0)

Did this file decode correctly?

Original Code

--TEST--
Bug #81142 (memory leak when unserialize()ing associative array)
--FILE--
<?php
$mem0 = memory_get_usage();
$ctr = 0;
unserialize(serialize(["foo_$ctr" => 1]));
$mem1 = memory_get_usage();
var_dump($mem1 - $mem0);
?>
--EXPECT--
int(0)

Function Calls

None

Variables

None

Stats

MD5 002ea73af96bc558b89518133c5f85c0
Eval Count 0
Decode Time 82 ms