summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imageinterlace_variation1.phpt
blob: d8eb7972fa18a7356cfd6e6d2e17702602214271 (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, 1));
var_dump(imageinterlace($image));
?>
--EXPECT--
int(1)
int(1)