mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
*** empty log message ***
This commit is contained in:
parent
afb0c684dc
commit
f681b37c7b
@ -629,11 +629,14 @@ static void php_message_handler_for_zend(long message, void *data)
|
||||
case ZMSG_LOG_SCRIPT_NAME: {
|
||||
struct tm *ta;
|
||||
time_t curtime;
|
||||
char *datetime_str;
|
||||
SLS_FETCH();
|
||||
|
||||
time(&curtime);
|
||||
ta = localtime(&curtime);
|
||||
fprintf(stderr, "[%s] Script: '%s'\n", asctime(ta), SAFE_FILENAME(SG(request_info).path_translated));
|
||||
datetime_str = asctime(ta);
|
||||
datetime_str[strlen(datetime_str)-1]=0; /* get rid of the traililng newline */
|
||||
fprintf(stderr, "[%s] Script: '%s'\n", datetime_str, SAFE_FILENAME(SG(request_info).path_translated));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user