1--TEST--
2Test gmstrftime() function : usage variation - Checking day related formats which was not supported on Windows before vc14.
3--FILE--
4<?php
5echo "*** Testing gmstrftime() : usage variation ***\n";
6
7// Initialise function arguments not being substituted (if any)
8$timestamp = gmmktime(8, 8, 8, 8, 8, 2008);
9setlocale(LC_ALL, "C");
10date_default_timezone_set("Asia/Calcutta");
11
12echo "\n-- Testing gmstrftime() function with Day of the month as decimal single digit format --\n";
13$format = "%e";
14var_dump( gmstrftime($format) );
15var_dump( gmstrftime($format, $timestamp) );
16
17?>
18--EXPECTF--
19*** Testing gmstrftime() : usage variation ***
20
21-- Testing gmstrftime() function with Day of the month as decimal single digit format --
22
23Deprecated: Function gmstrftime() is deprecated in %s on line %d
24string(2) "%A%d"
25
26Deprecated: Function gmstrftime() is deprecated in %s on line %d
27string(2) " 8"
28