File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / gd / tests / libgd00086_extern.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:56 2012 UTC (12 years, 8 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
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 external GD library\n");
?>
--FILE--
<?php

$im = imagecreatefrompng(dirname(__FILE__) . '/libgd00086.png');
var_dump($im);
?>
--EXPECTF--
gd-png:  fatal libpng error: Read Error: truncated data
gd-png error: setjmp returns error condition 1

Warning: imagecreatefrompng(): '%slibgd00086.png' is not a valid PNG file in %s on line %d
bool(false)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>