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();
|
php_info_print_table_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
static char* guess_timezone(void)
|
static char* guess_timezone(TSRMLS_D)
|
||||||
{
|
{
|
||||||
char *env;
|
char *env;
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ PHP_FUNCTION(strtotime)
|
||||||
timelib_time *t, *now;
|
timelib_time *t, *now;
|
||||||
timelib_tzinfo *tzi;
|
timelib_tzinfo *tzi;
|
||||||
|
|
||||||
tzi = timelib_parse_tzfile(guess_timezone());
|
tzi = timelib_parse_tzfile(guess_timezone(TSRMLS_C));
|
||||||
if (! tzi) {
|
if (! tzi) {
|
||||||
tzi = timelib_parse_tzfile("GMT");
|
tzi = timelib_parse_tzfile("GMT");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue