1--TEST--
2Test gmstrftime() function : usage variation - Checking day related formats which are supported other than on Windows.
3--SKIPIF--
4<?php
5if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
6    die("skip Test is not valid for Windows");
7}
8?>
9--FILE--
10<?php
11/* Prototype  : string gmstrftime(string format [, int timestamp])
12 * Description: Format a GMT/UCT time/date according to locale settings
13 * Source code: ext/date/php_date.c
14 * Alias to functions:
15 */
16
17echo "*** Testing gmstrftime() : usage variation ***\n";
18
19// Initialise function arguments not being substituted (if any)
20$timestamp = gmmktime(8, 8, 8, 8, 8, 2008);
21setlocale(LC_ALL, "en_US");
22date_default_timezone_set("Asia/Calcutta");
23
24echo "\n-- Testing gmstrftime() function with Day of the month as decimal single digit format --\n";
25$format = "%e";
26var_dump( gmstrftime($format) );
27var_dump( gmstrftime($format, $timestamp) );
28
29?>
30===DONE===
31--EXPECTF--
32*** Testing gmstrftime() : usage variation ***
33
34-- Testing gmstrftime() function with Day of the month as decimal single digit format --
35string(%d) "%s"
36string(2) " 8"
37===DONE===
38