Skip to content

Commit 4050589

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Add regression test for bug #76770
2 parents 89d4b6b + 959d3c9 commit 4050589

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ext/date/tests/bug76770.phpt

Lines changed: 8 additions & 0 deletions
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)