mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
17 lines
346 B
PHP
17 lines
346 B
PHP
--TEST--
|
|
date_default_timezone_get() function [2]
|
|
--SKIPIF--
|
|
<?php
|
|
if(substr(PHP_OS, 0, 3) == 'WIN') die("skip on windows");
|
|
?>
|
|
--INI--
|
|
date.timezone=
|
|
--FILE--
|
|
<?php
|
|
putenv('TZ=');
|
|
echo date_default_timezone_get(), "\n";
|
|
?>
|
|
--EXPECT--
|
|
Warning: PHP Startup: Invalid date.timezone value '', using 'UTC' instead in Unknown on line 0
|
|
UTC
|