mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
e4749c609c
- Improve TS of gif loading code (Roman Nemecek, Nuno, Pierre) - a frame size must be confined to the screen defition (Pierre) - be sure to always read the dimensions in the frame and does not use the screen size (see #66 for a side effect) (Pierre) - Update #37360 test. The frame does not fit the logical screen (specs tell that it must fit) (Pierre)
16 lines
416 B
PHP
16 lines
416 B
PHP
--TEST--
|
|
Bug #37360 (gdimagecreatefromgif, bad image sizes)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('gd')) die("skip gd extension not available\n");
|
|
if (!GD_BUNDLED) die('skip external GD libraries always fail');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$im = imagecreatefromgif(dirname(__FILE__) . '/bug37360.gif');
|
|
var_dump($im);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: imagecreatefromgif(): '%s' is not a valid GIF file in %s on line %d
|
|
bool(false)
|