]> granicus.if.org Git - php/commitdiff
- Added a "DEBUG" qualifier to 'php -v's version output, and made the CGI
authorDerick Rethans <derick@php.net>
Fri, 30 May 2003 17:03:10 +0000 (17:03 +0000)
committerDerick Rethans <derick@php.net>
Fri, 30 May 2003 17:03:10 +0000 (17:03 +0000)
  version statement look the same as the CLI version. (Derick)

NEWS
sapi/cgi/cgi_main.c
sapi/cli/php_cli.c

diff --git a/NEWS b/NEWS
index bda30b93a0f45c7a9014f6874de5300809f1930a..dc94fa23d83f8c2fcedd48ab3ddbe359b4193604 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,8 @@ PHP 4                                                                      NEWS
 - Added new command line parameters -B, -F, -R and -E which allow to process 
   stdin line by line (See 'php -h' or 'man php' for more). (Marcus)
 - Added DBA handler 'inifile' to support ini files. (Marcus)
+- Added a "DEBUG" qualifier to 'php -v's version output, and made the CGI
+  version statement look the same as the CLI version. (Derick)
 - Fixed bug #23898 (Proper handling of NULLs in odbc_result, odbc_fetch_into
   and odbc_result_all). (Ilia)
 - Fixed bug #23897 (Fixed a check for mbfilter_ru.h). (aleks@m2media.ru, Ilia)
index c4eb1db805e87b1a11a04b1b49c8e1790ce98a2b..2173952ff8457c0ee3679ce43aac16032b6fa0de 100644 (file)
@@ -1367,7 +1367,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 b7472024f5f4dc4bba6007f0d2cb7b3b6535eb36..22f90f825ea1541a9ea9ab39d4622b5de74db67e 100644 (file)
@@ -655,8 +655,12 @@ int main(int argc, char *argv[])
                        case 'v': /* show php version & quit */
                                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;