1--TEST-- 2libgd #86 (Possible infinite loop in imagecreatefrompng) 3--EXTENSIONS-- 4gd 5--SKIPIF-- 6<?php 7 if (GD_BUNDLED) die("skip requires external GD library\n"); 8 if (!(imagetypes() & IMG_PNG)) { 9 die("skip No PNG support"); 10 } 11?> 12--FILE-- 13<?php 14 15$im = imagecreatefrompng(__DIR__ . '/libgd00086.png'); 16var_dump($im); 17?> 18--EXPECTF-- 19Warning: imagecreatefrompng(): gd-png: fatal libpng error: Read Error: truncated data%win %s on line %d 20 21Warning: imagecreatefrompng(): gd-png error: setjmp returns error condition %d%win %s on line %d 22 23Warning: imagecreatefrompng(): "%slibgd00086.png" is not a valid PNG file in %s on line %d 24bool(false) 25