mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
2bb4d8282c
- Fixed tests due to class constants patch.
22 lines
321 B
PHP
22 lines
321 B
PHP
--TEST--
|
|
Bug #35143 (gettimeofday() ignores current time zone)
|
|
--FILE--
|
|
<?php
|
|
date_default_timezone_set("UTC");
|
|
|
|
var_dump(date_default_timezone_get());
|
|
var_dump(gettimeofday());
|
|
?>
|
|
--EXPECTF--
|
|
string(3) "UTC"
|
|
array(4) {
|
|
["sec"]=>
|
|
int(%d)
|
|
["usec"]=>
|
|
int(%d)
|
|
["minuteswest"]=>
|
|
int(0)
|
|
["dsttime"]=>
|
|
int(0)
|
|
}
|