mirror of
https://github.com/php/php-src.git
synced 2024-10-06 01:06:14 +00:00
227295a4f1
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
34 lines
467 B
PHP
34 lines
467 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)
|
|
}
|
|
--UEXPECTF--
|
|
unicode(3) "UTC"
|
|
array(4) {
|
|
[u"sec"]=>
|
|
int(%d)
|
|
[u"usec"]=>
|
|
int(%d)
|
|
[u"minuteswest"]=>
|
|
int(0)
|
|
[u"dsttime"]=>
|
|
int(0)
|
|
}
|