Annotation of embedaddon/php/ext/gd/tests/imagecreatetruecolor_error2.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Testing imagecreatetruecolor(): error on out of bound parameters
3: --CREDITS--
4: Rafael Dohms <rdohms [at] gmail [dot] com>
5: --SKIPIF--
6: <?php
7: if (!extension_loaded("gd")) die("skip GD not present");
8: if (!function_exists("imagecreatetruecolor")) die("skip GD Version not compatible");
9: ?>
10: --FILE--
11: <?php
12: $image = imagecreatetruecolor(-1, 30);
13: $image = imagecreatetruecolor(30, -1);
14: $image = imagecreatetruecolor(999999999999999999999999999, 30);
15: $image = imagecreatetruecolor(30, 999999999999999999999999999);
16: ?>
17: --EXPECTF--
18: Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d
19:
20: Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d
21:
22: Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d
23:
24: Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>