1--TEST-- 2Test strftime() function : usage variation - Checking day related formats which was not supported on Windows before VC14. 3--FILE-- 4<?php 5/* Prototype : string strftime(string format [, int timestamp]) 6 * Description: Format a local time/date according to locale settings 7 * Source code: ext/date/php_date.c 8 * Alias to functions: 9 */ 10 11echo "*** Testing strftime() : usage variation ***\n"; 12 13// Initialise function arguments not being substituted (if any) 14setlocale(LC_ALL, "C"); 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===DONE=== 24--EXPECTF-- 25*** Testing strftime() : usage variation *** 26 27-- Testing strftime() function with Day of the month as decimal single digit format -- 28string(%d) "%A%d" 29string(2) " 8" 30===DONE=== 31