This commit is contained in:
Sebastian Bergmann 2005-06-19 05:28:39 +00:00
parent a91a5601e4
commit 63a30ff1f0

View file

@ -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");
} }