1--TEST-- 2Testing wrong parameter passing in imageantialias() of GD library 3--CREDITS-- 4Guilherme Blanco <guilhermeblanco [at] hotmail [dot] com> 5#testfest PHPSP on 2009-06-20 6--SKIPIF-- 7<?php 8if (!extension_loaded("gd")) die("skip GD not present"); 9if (!GD_BUNDLED) die("skip requires bundled GD library\n"); 10?> 11--FILE-- 12<?php 13/* 14 15It seems the second argument passing is not being correclty checked. 16This test is failing due to this wrogn check 17 18*/ 19$image = imagecreatetruecolor(180, 30); 20 21var_dump(imageantialias($image, 'wrong param')); // 'wrogn param' is converted to true 22?> 23--EXPECTF-- 24bool(true) 25