mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
ZTS fix.
This commit is contained in:
parent
a91a5601e4
commit
63a30ff1f0
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ PHP_MINFO_FUNCTION(date)
|
|||
php_info_print_table_end();
|
||||
}
|
||||
|
||||
static char* guess_timezone(void)
|
||||
static char* guess_timezone(TSRMLS_D)
|
||||
{
|
||||
char *env;
|
||||
|
||||
|
@ -114,7 +114,7 @@ PHP_FUNCTION(strtotime)
|
|||
timelib_time *t, *now;
|
||||
timelib_tzinfo *tzi;
|
||||
|
||||
tzi = timelib_parse_tzfile(guess_timezone());
|
||||
tzi = timelib_parse_tzfile(guess_timezone(TSRMLS_C));
|
||||
if (! tzi) {
|
||||
tzi = timelib_parse_tzfile("GMT");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue