mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
8e664dd105
(2.0.34 or 2.0.35) work. NB: if you use Debian, you'll realize how bad their package is and start to either use the source or push all patches I posted to their bugs tracker
22 lines
619 B
PHP
22 lines
619 B
PHP
--TEST--
|
|
libgd #86 (Possible infinite loop in imagecreatefrompng)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('gd')) die("skip gd extension not available\n");
|
|
if (!GD_BUNDLED) die("skip requires bundled GD library\n");
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$im = imagecreatefrompng(dirname(__FILE__) . '/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)
|