xref: /PHP-8.0/ext/date/tests/timezones.phpt (revision 5737b1e9)
1--TEST--
2setting bogus timezones
3--FILE--
4<?php
5
6//bogus
7var_dump(date_default_timezone_set('AAA'));
8var_dump(date_default_timezone_set('ZZZ'));
9
10
11//now the first and the last one
12var_dump(date_default_timezone_set("Africa/Abidjan"));
13var_dump(date_default_timezone_set("Zulu"));
14
15echo "done\n";
16
17?>
18--EXPECTF--
19Notice: date_default_timezone_set(): Timezone ID 'AAA' is invalid in %stimezones.php on line 4
20bool(false)
21
22Notice: date_default_timezone_set(): Timezone ID 'ZZZ' is invalid in %stimezones.php on line 5
23bool(false)
24bool(true)
25bool(true)
26done
27