cvs: php-src(PHP_5_2) /main SAPI.c
| From: | Rasmus Lerdorf | Date: | Fri, 25 May 2007 09:20:01 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /main SAPI.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-44469@lists.php.net to get a copy of this message | ||
rasmus Fri May 25 09:20:01 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/main SAPI.c
Log:
Slightly cleaner code
http://cvs.php.net/viewvc.cgi/php-src/main/SAPI.c?r1=1.202.2.7.2.14&r2=1.202.2.7.2.15&diff_format=u
Index: php-src/main/SAPI.c
diff -u php-src/main/SAPI.c:1.202.2.7.2.14 php-src/main/SAPI.c:1.202.2.7.2.15
--- php-src/main/SAPI.c:1.202.2.7.2.14 Fri May 25 09:12:35 2007
+++ php-src/main/SAPI.c Fri May 25 09:20:01 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: SAPI.c,v 1.202.2.7.2.14 2007/05/25 09:12:35 rasmus Exp $ */
+/* $Id: SAPI.c,v 1.202.2.7.2.15 2007/05/25 09:20:01 rasmus Exp $ */
#include <ctype.h>
#include <sys/stat.h>
@@ -988,8 +988,8 @@
{
if(SG(global_request_time)) return SG(global_request_time);
- if (sapi_module.get_request_time) {
- SG(global_request_time) = (SG(server_context))?sapi_module.get_request_time(TSRMLS_C):time(0);
+ if (sapi_module.get_request_time && SG(server_context)) {
+ SG(global_request_time) = sapi_module.get_request_time(TSRMLS_C);
} else {
SG(global_request_time) = time(0);
}