2009-07-01 00:51:26 +00:00
|
|
|
--TEST--
|
|
|
|
Testing imagelayereffect() with invalid resource 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");
|
2010-03-11 05:49:50 +00:00
|
|
|
if (!GD_BUNDLED) die('skip function only available in bundled, external GD detected');
|
2009-07-01 00:51:26 +00:00
|
|
|
?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
$resource = tmpfile();
|
|
|
|
$layer = imagelayereffect($resource, IMG_EFFECT_REPLACE);
|
|
|
|
?>
|
|
|
|
--EXPECTF--
|
|
|
|
Warning: imagelayereffect(): supplied resource is not a valid Image resource in %s on line %d
|