Skip to content

Commit 959d3c9

Browse files
sam002cmb69
authored andcommitted
Add regression test for bug #76770
Closes GH-3514.
1 parent 7d9ddd6 commit 959d3c9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ext/date/tests/bug76770.phpt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
--TEST--
2+
Bug #76770 'U' modifier in 'datetime::createFromFormat' adds seconds to other specifiers
3+
--FILE--
4+
<?php
5+
var_dump(datetime::createFromFormat('U H', '3600 01')->getTimestamp());
6+
?>
7+
--EXPECT--
8+
int(3600)

0 commit comments

Comments
 (0)