Annotation of embedaddon/php/ext/date/tests/gmdate_variation14.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test 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: 
        !            10: echo "*** Testing gmdate() : usage variation ***\n";
        !            11: 
        !            12: // Initialise all required variables
        !            13: date_default_timezone_set('UTC');
        !            14: $format = DATE_ISO8601;
        !            15: 
        !            16: echo "\n-- Testing gmdate() function with float 12.3456789000e10 to timestamp --\n";
        !            17: $timestamp = 12.3456789000e10;
        !            18: var_dump( gmdate($format, $timestamp) );
        !            19: 
        !            20: echo "\n-- Testing gmdate() function with float -12.3456789000e10 to timestamp --\n";
        !            21: $timestamp = -12.3456789000e10;
        !            22: var_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 --
        !            30: string\((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 --
        !            33: string\((24|25)\) "(2004-10-08T19:09:44\+0000|1901-12-13T20:45:52\+0000|-1943-10-22T23:30:00\+0000)"
        !            34: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>