xref: /PHP-7.3/ext/date/tests/bug46111.phpt (revision 782352c5)
1--TEST--
2Bug #46111 (strtotime() returns false for some valid timezones)
3--FILE--
4<?php
5date_default_timezone_set('Asia/Calcutta');
6$timezones = timezone_identifiers_list();
7
8# An empty list indicates no errors
9print "[strtotime(timezone) == false - Begin List]\n";
10foreach ($timezones as $zone) {
11    $date_string = "2008-01-01 13:00:00 " . $zone;
12
13    if (!strtotime($date_string)) {
14        echo $zone . "\n";
15    }
16}
17print "[strtotime(timezone) == false - End List]\n";
18?>
19--EXPECT--
20[strtotime(timezone) == false - Begin List]
21[strtotime(timezone) == false - End List]
22