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