1--TEST-- 2idate() and invalid params 3--FILE-- 4<?php 5date_default_timezone_set('UTC'); 6 7$t = mktime(0,0,0, 6, 27, 2006); 8 9var_dump(idate()); 10var_dump(idate(1,1,1)); 11 12var_dump(idate(1,1)); 13var_dump(idate("")); 14var_dump(idate(0)); 15 16var_dump(idate("B", $t)); 17var_dump(idate("[", $t)); 18var_dump(idate("'")); 19 20echo "Done\n"; 21?> 22--EXPECTF-- 23Warning: idate() expects at least 1 parameter, 0 given in %s on line %d 24bool(false) 25 26Warning: idate() expects at most 2 parameters, 3 given in %s on line %d 27bool(false) 28 29Warning: idate(): Unrecognized date format token. in %s on line %d 30bool(false) 31 32Warning: idate(): idate format is one char in %s on line %d 33bool(false) 34 35Warning: idate(): Unrecognized date format token. in %s on line %d 36bool(false) 37int(41) 38 39Warning: idate(): Unrecognized date format token. in %s on line %d 40bool(false) 41 42Warning: idate(): Unrecognized date format token. in %s on line %d 43bool(false) 44Done 45