Skip to content

Commit 87d635b

Browse files
committed
Don't test invalid strftime format
The behavior in this case depends on the implementation.
1 parent 6eafc6c commit 87d635b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

ext/date/tests/009.phpt

-4
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ $t = mktime(0,0,0, 6, 27, 2006);
1313
var_dump(strftime(""));
1414
var_dump(strftime("%a %A %b %B %c %C %d %D %e %g %G %h %H %I %j %m %M %n %p %r %R %S %t %T %u %U %V %W %w %x %X %y %Y %Z %z %%", $t));
1515
var_dump(strftime("%%q %%a", $t));
16-
var_dump(strftime("%q", $t));
1716
var_dump(strftime("blah", $t));
1817

1918
var_dump(gmstrftime(""));
2019
var_dump(gmstrftime("%a %A %b %B %c %C %d %D %e %g %G %h %H %I %j %m %M %n %p %r %R %S %t %T %u %U %V %W %w %x %X %y %Y %Z %z %%", $t));
2120
var_dump(gmstrftime("%%q %%a", $t));
22-
var_dump(gmstrftime("%q", $t));
2321
var_dump(gmstrftime("blah", $t));
2422

2523
echo "Done\n";
@@ -29,12 +27,10 @@ bool(false)
2927
string(%d) "Tue Tuesday Jun June Tue Jun 27 00:00:00 2006 %s
3028
%s %"
3129
string(5) "%q %a"
32-
string(%d) "%s"
3330
string(4) "blah"
3431
bool(false)
3532
string(%d) "Mon Monday Jun June Mon Jun 26 21:00:00 2006 %s
3633
%s %"
3734
string(5) "%q %a"
38-
string(%d) "%s"
3935
string(4) "blah"
4036
Done

0 commit comments

Comments
 (0)