mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
17 lines
506 B
PHP
17 lines
506 B
PHP
--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");
|
|
if (!GD_BUNDLED) die('function only available in bundled, external GD detected');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$layer = imagelayereffect('invalid_resource', IMG_EFFECT_REPLACE);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: imagelayereffect() expects parameter 1 to be resource, %s given in %s on line %d
|