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-- libgd #86 (Possible infinite loop in imagecreatefrompng) --EXTENSIONS-- gd --SKIP..

Decoded Output download

--TEST--
libgd #86 (Possible infinite loop in imagecreatefrompng)
--EXTENSIONS--
gd
--SKIPIF--
<?php
    if (!GD_BUNDLED) die("skip requires bundled GD library
");
?>
--FILE--
<?php

$im = imagecreatefrompng(__DIR__ . '/libgd00086.png');
var_dump($im);
?>
--EXPECTF--
Warning: imagecreatefrompng(): gd-png:  fatal libpng error: Read Error: truncated data in %s on line %d

Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition in %s on line %d

Warning: imagecreatefrompng(): "%s" is not a valid PNG file in %s on line %d
bool(false)

Did this file decode correctly?

Original Code

--TEST--
libgd #86 (Possible infinite loop in imagecreatefrompng)
--EXTENSIONS--
gd
--SKIPIF--
<?php
    if (!GD_BUNDLED) die("skip requires bundled GD library\n");
?>
--FILE--
<?php

$im = imagecreatefrompng(__DIR__ . '/libgd00086.png');
var_dump($im);
?>
--EXPECTF--
Warning: imagecreatefrompng(): gd-png:  fatal libpng error: Read Error: truncated data in %s on line %d

Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition in %s on line %d

Warning: imagecreatefrompng(): "%s" is not a valid PNG file in %s on line %d
bool(false)

Function Calls

None

Variables

None

Stats

MD5 645f3ce46a41f14f46b1e7b1b3694f03
Eval Count 0
Decode Time 91 ms