diff --git a/ext/date/php_date.c b/ext/date/php_date.c index d3e65afb79f..9dd466bccff 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -252,7 +252,7 @@ static void php_date(INTERNAL_FUNCTION_PARAMETERS, int localtime) t = timelib_time_ctor(); if (localtime) { - tzi = timelib_parse_tzfile(guess_timezone()); + tzi = timelib_parse_tzfile(guess_timezone(TSRMLS_C)); if (! tzi) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot find any timezone setting"); timelib_time_dtor(t);