]> granicus.if.org Git - php/commitdiff
- MFB: Version output beautification
authorDerick Rethans <derick@php.net>
Fri, 30 May 2003 16:10:58 +0000 (16:10 +0000)
committerDerick Rethans <derick@php.net>
Fri, 30 May 2003 16:10:58 +0000 (16:10 +0000)
sapi/cgi/cgi_main.c
sapi/cli/php_cli.c

index 3b4160c8e6ab5cc9e8b5a7480b50aee52c80bdc5..2c3b604dd360dd69f62d1ee2f5181d5ecd9d354d 100644 (file)
@@ -1384,7 +1384,11 @@ consult the installation file that came with this distribution, or visit \n\
                                                        SG(headers_sent) = 1;
                                                        SG(request_info).no_headers = 1;
                                                }
-                                               php_printf("PHP %s (%s), Copyright (c) 1997-2003 The PHP Group\n%s", PHP_VERSION, sapi_module.name, get_zend_version());
+#if ZEND_DEBUG
+                                               php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) 1997-2003 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
+#else
+                                               php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2003 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
+#endif
                                                php_end_ob_buffers(1 TSRMLS_CC);
                                                exit(1);
                                                break;
index af357235b0e38928e6a48bdf717c99fe36c02233..b1c25d83a2a68c79aa6592dfea7193b7452f1525 100644 (file)
@@ -651,7 +651,11 @@ int main(int argc, char *argv[])
                                if (php_request_startup(TSRMLS_C)==FAILURE) {
                                        goto err;
                                }
+#if ZEND_DEBUG
+                               php_printf("PHP %s (%s) (built: %s %s) (DEBUG)\nCopyright (c) 1997-2003 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
+#else
                                php_printf("PHP %s (%s) (built: %s %s)\nCopyright (c) 1997-2003 The PHP Group\n%s", PHP_VERSION, sapi_module.name, __DATE__, __TIME__, get_zend_version());
+#endif
                                php_end_ob_buffers(1 TSRMLS_CC);
                                exit_status=1;
                                goto out;