]> granicus.if.org Git - php/commitdiff
- COmmit the test, not the diff
authorDerick Rethans <derick@php.net>
Fri, 26 Mar 2004 19:50:45 +0000 (19:50 +0000)
committerDerick Rethans <derick@php.net>
Fri, 26 Mar 2004 19:50:45 +0000 (19:50 +0000)
ext/standard/tests/time/bug27719.diff [deleted file]
ext/standard/tests/time/bug27719.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/time/bug27719.diff b/ext/standard/tests/time/bug27719.diff
deleted file mode 100644 (file)
index 25fd07d..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-002- 1081051200
-002+ 1081054800
\ No newline at end of file
diff --git a/ext/standard/tests/time/bug27719.phpt b/ext/standard/tests/time/bug27719.phpt
new file mode 100644 (file)
index 0000000..991f9e8
--- /dev/null
@@ -0,0 +1,14 @@
+--TEST--
+Bug #27719: mktime returns incorrect timestamp for dst days
+--FILE--
+<?php
+       putenv("TZ=EST");
+
+       echo mktime(0, 0, 0, 4, 4, 2004, 0) . "\n";
+       echo mktime(0, 0, 0, 4, 4, 2004, 1) . "\n";
+       echo mktime(0, 0, 0, 4, 4, 2004, -1) . "\n";
+?>
+--EXPECT--
+1081054800
+1081051200
+1081054800