1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

- add reminder for checking return values

This commit is contained in:
Pierre Joye
2013-03-24 13:27:00 +01:00
parent 3af4896837
commit bb18fa448c

View File

@@ -315,6 +315,8 @@ int php_cli_server_get_system_time(char *buf) {
struct tm tm;
gettimeofday(&tv, NULL);
/* TODO: should be checked for NULL tm/return vaue */
php_localtime_r(&tv.tv_sec, &tm);
php_asctime_r(&tm, buf);
return 0;