1--TEST-- 2Testing wrong param passing imagerectangle() of GD library 3--CREDITS-- 4Ivan Rosolen <contato [at] ivanrosolen [dot] com> 5#testfest PHPSP on 2009-06-30 6--SKIPIF-- 7<?php 8if ( ! extension_loaded('gd') ) die( 'skip GD not present; skipping test' ); 9?> 10--FILE-- 11<?php 12// Create a resource 13$image = tmpfile(); 14 15// Draw a rectangle 16imagerectangle( $image, 0, 0, 50, 50, 2 ); 17?> 18--EXPECTF-- 19Warning: imagerectangle(): supplied resource is not a valid Image resource in %s on line %d 20