Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sapi/phpdbg/phpdbg_out.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ int phpdbg_process_print(int fd, int type, const char *msg, int msglen) {
if (msg) {
struct timeval tp;
if (gettimeofday(&tp, NULL) == SUCCESS) {
#ifdef HAVE_VASPRINTF
msgoutlen = phpdbg_asprintf(&msgout, "[%ld %.8F]: %.*s\n", tp.tv_sec, tp.tv_usec / 1000000., msglen, msg);
#else
msgoutlen = phpdbg_asprintf(&msgout, "[%ld 0.%06ld00]: %.*s\n", tp.tv_sec, (long) tp.tv_usec, msglen, msg);
#endif
} else {
msgoutlen = FAILURE;
}
Expand Down
Loading