1--TEST-- 2Test getdate() function : usage variation - Passing high positive and negative float values to timestamp. 3--SKIPIF-- 4<?php if (PHP_INT_SIZE != 4) echo "skip this test is for 32-bit only"; ?> 5--FILE-- 6<?php 7/* Prototype : array getdate([int timestamp]) 8 * Description: Get date/time information 9 * Source code: ext/date/php_date.c 10 * Alias to functions: 11 */ 12 13echo "*** Testing getdate() : usage variation ***\n"; 14date_default_timezone_set("Asia/Calcutta"); 15 16echo "\n-- Testing getdate() function by passing float 12.3456789000e10 value to timestamp --\n"; 17$timestamp = 12.3456789000e10; 18var_dump( getdate($timestamp) ); 19 20echo "\n-- Testing getdate() function by passing float -12.3456789000e10 value to timestamp --\n"; 21$timestamp = -12.3456789000e10; 22var_dump( getdate($timestamp) ); 23?> 24===DONE=== 25--EXPECTF-- 26*** Testing getdate() : usage variation *** 27 28-- Testing getdate() function by passing float 12.3456789000e10 value to timestamp -- 29 30Warning: getdate() expects parameter 1 to be integer, float given in %s on line %d 31bool(false) 32 33-- Testing getdate() function by passing float -12.3456789000e10 value to timestamp -- 34 35Warning: getdate() expects parameter 1 to be integer, float given in %s on line %d 36bool(false) 37===DONE===