Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / php / ext / gd / tests / imagefilter_error8.phpt
blob57c3168f7e9b5e303599d673ee37c57844137e49
1 --TEST--
2 Testing wrong parameter resource of SELECTIVE_BLUR in imagefilter() of GD library
3 --CREDITS--
4 Guilherme Blanco <guilhermeblanco [at] hotmail [dot] com>
5 #testfest PHPSP on 2009-06-20
6 --SKIPIF--
7 <?php 
8 if (!extension_loaded("gd")) die("skip GD not present");
9 ?>
10 --FILE--
11 <?php
12 $image = tmpfile();
14 var_dump(imagefilter($image, IMG_FILTER_SELECTIVE_BLUR));
16 --EXPECTF--
17 Warning: imagefilter(): supplied resource is not a valid Image resource in %s on line %d
18 bool(false)