1--TEST--
2Testing imagecreatetruecolor(): error on out of bound parameters
3--CREDITS--
4Rafael 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--
18Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d
19
20Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d
21
22Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d
23
24Warning: imagecreatetruecolor(): Invalid image dimensions in %s on line %d