mirror of
https://github.com/php/php-src.git
synced 2026-04-18 21:41:22 +02:00
21 lines
455 B
PHP
21 lines
455 B
PHP
--TEST--
|
|
Bug #77700 (Writing truecolor images as GIF ignores interlace flag)
|
|
--EXTENSIONS--
|
|
gd
|
|
--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');
|
|
?>
|