Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/date/php_date.c
Original file line number Diff line number Diff line change
Expand Up @@ -4481,7 +4481,7 @@ PHP_FUNCTION(timezone_identifiers_list)
const timelib_tzdb *tzdb;
const timelib_tzdb_index_entry *table;
int i, item_count;
long what = PHP_DATE_TIMEZONE_GROUP_ALL;
long what = PHP_DATE_TIMEZONE_GROUP_ALL_W_BC;
char *option = NULL;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this! The hypocrisy of it all has caused me to fork my servers' own version of PHP just to have this functionality ;-)

int option_len = 0;

Expand Down
9 changes: 9 additions & 0 deletions ext/date/tests/bug64560.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--TEST--
Test for bug #64560: timezones missing from DateTimeZone::listIdentifiers()
--CREDITS--
Boro Sitnikovski <buritomath@yahoo.com>
--FILE--
<?php
var_dump(in_array('Australia/Canberra', DateTimeZone::listIdentifiers()));
--EXPECT--
bool(true)