. Fixed bug #75882 (a simple way for segfaults in threadsafe php just with
configuration). (Anatol)
-- PGSQL:
- . Fixed #75838 (Memory leak in pg_escape_bytea()). (ard_1 at mail dot ru)
-
-- ODBC:
- . Fixed bug #73725 (Unable to retrieve value of varchar(max) type). (Anatol)
-
+ - Date:
+ . Fixed bug #75928 (Argument 2 for `DateTimeZone::listIdentifiers()` should
+ accept `null`). (Pedro Lacerda)
+
- LDAP:
. Fixed bug #49876 (Fix LDAP path lookup on 64-bit distros). (dzuelke)
const timelib_tzdb *tzdb;
const timelib_tzdb_index_entry *table;
int i, item_count;
- zend_long what = PHP_DATE_TIMEZONE_GROUP_ALL;
+ zend_long what = PHP_DATE_TIMEZONE_GROUP_ALL;
char *option = NULL;
- size_t option_len = 0;
+ size_t option_len = 0;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "|ls!", &what, &option, &option_len) == FAILURE) {
- RETURN_FALSE;
- }
+ ZEND_PARSE_PARAMETERS_START(0, 2)
+ Z_PARAM_OPTIONAL
+ Z_PARAM_LONG(what)
- Z_PARAM_STRING(option, option_len)
++ Z_PARAM_STRING_EX(option, option_len, 1, 0)
+ ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
/* Extra validation */
if (what == PHP_DATE_TIMEZONE_PER_COUNTRY && option_len != 2) {