strftime_variation17.phpt 874 B

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