From 0808db5fc650daedf246b67e564f9eec4928da1b Mon Sep 17 00:00:00 2001 From: Boro Sitnikovski Date: Thu, 26 Sep 2013 00:30:00 +0200 Subject: [PATCH] Bug 64560 Include all timezones (with backwards compatibility) for default $what --- ext/date/php_date.c | 2 +- ext/date/tests/bug64560.phpt | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 ext/date/tests/bug64560.phpt diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 7d3d1d739e113..170abc95e3575 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -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; int option_len = 0; diff --git a/ext/date/tests/bug64560.phpt b/ext/date/tests/bug64560.phpt new file mode 100644 index 0000000000000..e9762bde91827 --- /dev/null +++ b/ext/date/tests/bug64560.phpt @@ -0,0 +1,9 @@ +--TEST-- +Test for bug #64560: timezones missing from DateTimeZone::listIdentifiers() +--CREDITS-- +Boro Sitnikovski +--FILE-- +