1--TEST--
2Test invalid time zone and defaults
3--INI--
4date.timezone=UTC
5--FILE--
6<?php
7echo ini_get("date.timezone"), "\n";
8
9ini_set("date.timezone", "foo");
10echo ini_get("date.timezone"), "\n";
11
12ini_set("date.timezone", "Europe/London");
13echo ini_get("date.timezone"), "\n";
14
15ini_set("date.timezone", "Mars/Valles_Marineris");
16echo ini_get("date.timezone"), "\n";
17?>
18--EXPECTF--
19UTC
20
21Warning: ini_set(): Invalid date.timezone value 'foo', using 'UTC' instead in %sini_set_incorrect-002.php on line %d
22UTC
23Europe/London
24
25Warning: ini_set(): Invalid date.timezone value 'Mars/Valles_Marineris', using 'Europe/London' instead in %sini_set_incorrect-002.php on line %d
26Europe/London
27