summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imageinterlace_variation2.phpt
blob: f1ee51502df6fcc6c1c6ae631d25497ca337db82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
Testing setting the interlace bit off 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);

//setting the interlace bit to on
imageinterlace($image, 1);

//setting de interlace bit to off
var_dump(imageinterlace($image, 0));
var_dump(imageinterlace($image));
?>
--EXPECT--
int(0)
int(0)