summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imageinterlace_variation1.phpt
blob: 477aa9d259a1a667ede8938e1f347a93007c0ff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Testing setting the interlace bit on with imageinterlace() of GD library
--CREDITS--
Edgar Ferreira da Silva <contato [at] edgarfs [dot] com [dot] br>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php
if (!extension_loaded("gd")) die("skip GD not present");
?>
--FILE--
<?php

$image = imagecreatetruecolor(100, 100);

var_dump(imageinterlace($image, true));
var_dump(imageinterlace($image));
?>
--EXPECT--
bool(true)
bool(true)