1--TEST--
2Test strftime() function : usage variation - Checking month 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 strftime(string format [, int timestamp])
12 * Description: Format a local time/date according to locale settings
13 * Source code: ext/date/php_date.c
14 * Alias to functions:
15 */
16
17echo "*** Testing strftime() : usage variation ***\n";
18
19// Initialise function arguments not being substituted (if any)
20setlocale(LC_ALL, "en_US");
21date_default_timezone_set("Asia/Calcutta");
22$timestamp = mktime(8, 8, 8, 8, 8, 2008);
23
24echo "\n-- Testing strftime() function with  Abbreviated month name format %h --\n";
25$format = "%h";
26var_dump( strftime($format) );
27var_dump( strftime($format, $timestamp) );
28
29?>
30===DONE===
31--EXPECTF--
32*** Testing strftime() : usage variation ***
33
34-- Testing strftime() function with  Abbreviated month name format %h --
35string(%d) "%s"
36string(3) "Aug"
37===DONE===
38