blob: fd6d136ae8eecc99dc5c074d8c930c120cd03119 (
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
|