Skip to content

Commit 0179284

Browse files
committed
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: - add reminder for checking return values
2 parents ec26141 + bb18fa4 commit 0179284

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sapi/cli/php_cli_server.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ int php_cli_server_get_system_time(char *buf) {
319319
struct tm tm;
320320

321321
gettimeofday(&tv, NULL);
322+
323+
/* TODO: should be checked for NULL tm/return vaue */
322324
php_localtime_r(&tv.tv_sec, &tm);
323325
php_asctime_r(&tm, buf);
324326
return 0;

0 commit comments

Comments
 (0)