mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Move mktime/gmmktime related tests from ext/standard to ext/date.
This commit is contained in:
parent
ed02f202f0
commit
d3c83378eb
6 changed files with 3 additions and 2 deletions
|
@ -470,6 +470,7 @@ PHPAPI static void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gmt)
|
||||||
if (dst == 0 && tmp_offset->is_dst == 1) {
|
if (dst == 0 && tmp_offset->is_dst == 1) {
|
||||||
adjust_seconds = +3600;
|
adjust_seconds = +3600;
|
||||||
}
|
}
|
||||||
|
timelib_time_offset_dtor(tmp_offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Clean up and return */
|
/* Clean up and return */
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Bug #20382 (strtotime ("Monday", $date) produces wrong result on DST changeover)
|
Bug #20382 [1] (strtotime ("Monday", $date) produces wrong result on DST changeover)
|
||||||
--FILE--
|
--FILE--
|
||||||
<?php
|
<?php
|
||||||
putenv("TZ=Europe/Amsterdam");
|
putenv("TZ=Europe/Amsterdam");
|
|
@ -1,5 +1,5 @@
|
||||||
--TEST--
|
--TEST--
|
||||||
Bug #27719: mktime returns incorrect timestamp for dst days
|
Bug #27719 (mktime returns incorrect timestamp for dst days)
|
||||||
--INI--
|
--INI--
|
||||||
error_reporting=2047
|
error_reporting=2047
|
||||||
--FILE--
|
--FILE--
|
Loading…
Add table
Add a link
Reference in a new issue