]> granicus.if.org Git - php/commitdiff
Add regression test for bug #76770
authorSemen Dubina <semen@sam002.net>
Mon, 10 Sep 2018 22:26:02 +0000 (01:26 +0300)
committerChristoph M. Becker <cmbecker69@gmx.de>
Wed, 23 Dec 2020 15:47:08 +0000 (16:47 +0100)
Closes GH-3514.

ext/date/tests/bug76770.phpt [new file with mode: 0644]

diff --git a/ext/date/tests/bug76770.phpt b/ext/date/tests/bug76770.phpt
new file mode 100644 (file)
index 0000000..9d01bf1
--- /dev/null
@@ -0,0 +1,8 @@
+--TEST--
+Bug #76770 'U' modifier in 'datetime::createFromFormat' adds seconds to other specifiers
+--FILE--
+<?php
+var_dump(datetime::createFromFormat('U H', '3600 01')->getTimestamp());
+?>
+--EXPECT--
+int(3600)