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
11echo "*** Testing gmstrftime() : usage variation ***\n";
12
13// Initialise function arguments not being substituted (if any)
14$timestamp = gmmktime(8, 8, 8, 8, 8, 2008);
15setlocale(LC_ALL, "en_US");
16date_default_timezone_set("Asia/Calcutta");
17
18echo "\n-- Testing gmstrftime() function with Day of the month as decimal single digit format --\n";
19$format = "%e";
20var_dump( gmstrftime($format) );
21var_dump( gmstrftime($format, $timestamp) );
22
23?>
24--EXPECTF--
25*** Testing gmstrftime() : usage variation ***
26
27-- Testing gmstrftime() function with Day of the month as decimal single digit format --
28
29Deprecated: Function gmstrftime() is deprecated in %s on line %d
30string(%d) "%s"
31
32Deprecated: Function gmstrftime() is deprecated in %s on line %d
33string(2) " 8"
34