1--TEST-- 2Test gmstrftime() function : usage variation - Checking day related formats which was not supported on Windows before vc14. 3--FILE-- 4<?php 5/* Prototype : string gmstrftime(string format [, int timestamp]) 6 * Description: Format a GMT/UCT time/date according to locale settings 7 * Source code: ext/date/php_date.c 8 * Alias to functions: 9 */ 10 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, "C"); 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===DONE=== 25--EXPECTF-- 26*** Testing gmstrftime() : usage variation *** 27 28-- Testing gmstrftime() function with Day of the month as decimal single digit format -- 29string(2) "%A%d" 30string(2) " 8" 31===DONE=== 32