1--TEST--
2Test gmdate() function : usage variation - Passing high positive and negetive float values to timestamp.
3--FILE--
4<?php
5/* Prototype  : string gmdate(string format [, long timestamp])
6 * Description: Format a GMT date/time
7 * Source code: ext/date/php_date.c
8 */
9
10echo "*** Testing gmdate() : usage variation ***\n";
11
12// Initialise all required variables
13date_default_timezone_set('UTC');
14$format = DATE_ISO8601;
15
16echo "\n-- Testing gmdate() function with float 12.3456789000e10 to timestamp --\n";
17$timestamp = 12.3456789000e10;
18var_dump( gmdate($format, $timestamp) );
19
20echo "\n-- Testing gmdate() function with float -12.3456789000e10 to timestamp --\n";
21$timestamp = -12.3456789000e10;
22var_dump( gmdate($format, $timestamp) );
23
24?>
25===DONE===
26--EXPECTREGEX--
27\*\*\* Testing gmdate\(\) : usage variation \*\*\*
28
29-- Testing gmdate\(\) function with float 12.3456789000e10 to timestamp --
30string\((24|25)\) "(1935-03-26T04:50:16\+0000|5882-03-11T00:30:00\+0000)"
31
32-- Testing gmdate\(\) function with float -12.3456789000e10 to timestamp --
33string\((24|25)\) "(2004-10-08T19:09:44\+0000|1901-12-13T20:45:52\+0000|-1943-10-22T23:30:00\+0000)"
34===DONE===