1--TEST--
2Test gmstrftime() function : usage variation - Passing literal related strings to format argument.
3--FILE--
4<?php
5echo "*** Testing gmstrftime() : usage variation ***\n";
6
7// Initialise function arguments not being substituted (if any)
8$timestamp = gmmktime(8, 8, 8, 8, 8, 2008);
9setlocale(LC_ALL, "en_US");
10date_default_timezone_set("Asia/Calcutta");
11
12//array of values to iterate over
13$inputs = array(
14      'A literal % character' => "%%",
15);
16
17// loop through each element of the array for timestamp
18
19foreach($inputs as $key =>$value) {
20      echo "\n--$key--\n";
21      var_dump( gmstrftime($value) );
22      var_dump( gmstrftime($value, $timestamp) );
23};
24
25?>
26--EXPECTF--
27*** Testing gmstrftime() : usage variation ***
28
29--A literal % character--
30
31Deprecated: Function gmstrftime() is deprecated in %s on line %d
32string(1) "%"
33
34Deprecated: Function gmstrftime() is deprecated in %s on line %d
35string(1) "%"
36