Annotation of embedaddon/php/ext/gd/tests/libgd00086_extern.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: libgd #86 (Possible infinite loop in imagecreatefrompng)
! 3: --SKIPIF--
! 4: <?php
! 5: if (!extension_loaded('gd')) die("skip gd extension not available\n");
! 6: if (GD_BUNDLED) die("skip requires external GD library\n");
! 7: ?>
! 8: --FILE--
! 9: <?php
! 10:
! 11: $im = imagecreatefrompng(dirname(__FILE__) . '/libgd00086.png');
! 12: var_dump($im);
! 13: ?>
! 14: --EXPECTF--
! 15: gd-png: fatal libpng error: Read Error: truncated data
! 16: gd-png error: setjmp returns error condition 1
! 17:
! 18: Warning: imagecreatefrompng(): '%slibgd00086.png' is not a valid PNG file in %s on line %d
! 19: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>