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