summaryrefslogtreecommitdiff
path: root/ext/gd/tests/bug77700.phpt
blob: a14a2259ebc6d47a616e60743d53b1e81c7c5246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Bug #77700 (Writing truecolor images as GIF ignores interlace flag)
--SKIPIF--
<?php
if (!extension_loaded('gd')) die('skip gd extension not available');
?>
--FILE--
<?php
$im = imagecreatetruecolor(10, 10);
imagefilledrectangle($im, 0, 0, 9, 9, imagecolorallocate($im, 255, 255, 255));
imageinterlace($im, true);
imagegif($im, __DIR__ . 'bug77700.gif');

$im = imagecreatefromgif(__DIR__ . 'bug77700.gif');
var_dump(imageinterlace($im));
?>
--EXPECT--
bool(true)
--CLEAN--
<?php
unlink(__DIR__ . 'bug77700.gif');
?>