cvs: /php4 main.c

From: Date: Fri, 27 Aug 1999 04:31:54 +0000
Subject: cvs: /php4 main.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-3772@lists.php.net to get a copy of this message
zeev Fri Aug 27 00:31:54 1999 EDT Modified files: /php4 main.c Log: Log date&time on script logs Index: php4/main.c diff -u php4/main.c:1.100 php4/main.c:1.101 --- php4/main.c:1.100 Wed Aug 25 12:24:13 1999 +++ php4/main.c Fri Aug 27 00:31:53 1999 @@ -19,7 +19,7 @@ */ -/* $Id: main.c,v 1.100 1999/08/25 16:24:13 andi Exp $ */ +/* $Id: main.c,v 1.101 1999/08/27 04:31:53 zeev Exp $ */ #include <stdio.h> @@ -627,9 +627,13 @@ } break; case ZMSG_LOG_SCRIPT_NAME: { + struct tm *ta; + time_t curtime; SLS_FETCH(); - fprintf(stderr, "Script: '%s'\n", SAFE_FILENAME(SG(request_info).path_translated)); + time(&curtime); + ta = localtime(&curtime); + fprintf(stderr, "[%s] Script: '%s'\n", asctime(ta), SAFE_FILENAME(SG(request_info).path_translated)); } break; }

« previous php.version4 (#3772) next »