summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imagegammacorrect_error2.phpt
blob: 604d7da7961e25b8a40960c36200e3d673ebf045 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Testing error with non-Image resource paramenter of imagegammacorrect() of GD library, 
--CREDITS--
Rafael Dohms <rdohms [at] gmail [dot] com>
#testfest PHPSP on 2009-06-20
--SKIPIF--
<?php 
	if (!extension_loaded("gd")) die("skip GD not present");
?>
--FILE--
<?php
$image = tmpfile();
$gamma = imagegammacorrect($image, 1, 5);

?>
--EXPECTF--
Warning: imagegammacorrect(): supplied resource is not a valid Image resource in %s on line %d