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-- GdImage instances must not be serialized --EXTENSIONS-- gd --FILE-- <?php $i..

Decoded Output download

--TEST--
GdImage instances must not be serialized
--EXTENSIONS--
gd
--FILE--
<?php

    $img_src = imagecreatetruecolor(32, 32);
    var_dump(serialize($img_src));

?>
--EXPECTF--
Fatal error: Uncaught Exception: Serialization of 'GdImage' is not allowed in %s:%d
Stack trace:
#0 %s(%d): serialize(Object(GdImage))
#1 {main}
  thrown in %s on line %d

Did this file decode correctly?

Original Code

--TEST--
GdImage instances must not be serialized
--EXTENSIONS--
gd
--FILE--
<?php

    $img_src = imagecreatetruecolor(32, 32);
    var_dump(serialize($img_src));

?>
--EXPECTF--
Fatal error: Uncaught Exception: Serialization of 'GdImage' is not allowed in %s:%d
Stack trace:
#0 %s(%d): serialize(Object(GdImage))
#1 {main}
  thrown in %s on line %d

Function Calls

imagecreatetruecolor 1

Variables

None

Stats

MD5 3193b833382030b5710654923698c6d1
Eval Count 0
Decode Time 256 ms