]> granicus.if.org Git - php/commitdiff
Add Zend version and copyright.
authorIvan Enderlin <ivan.enderlin@hoa-project.net>
Wed, 18 Dec 2013 15:13:14 +0000 (16:13 +0100)
committerIvan Enderlin <ivan.enderlin@hoa-project.net>
Wed, 18 Dec 2013 15:15:24 +0000 (16:15 +0100)
phpdbg.c

index 12432a554b41987c9475a39b71e6003b06e58efa..55943de58f42cb15c5b20f526b7c3eb640953e2b 100644 (file)
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -1001,14 +1001,19 @@ phpdbg_main:
 #endif
 
                        case 'V': {
+                               sapi_startup(phpdbg);
+                               phpdbg->startup(phpdbg);
                                printf(
-                                       "phpdbg %s (built: %s %s)\nCopyright (c) 2013 %s\nPHP %s, Copyright (c) 1997-2013 The PHP Group\n",
+                                       "phpdbg %s (built: %s %s)\nCopyright (c) 2013 %s\nPHP %s, Copyright (c) 1997-2013 The PHP Group\n%s",
                                        PHPDBG_VERSION,
                                        __DATE__,
                                        __TIME__,
                                        PHPDBG_AUTHORS,
-                                       PHP_VERSION
+                                       PHP_VERSION,
+                                       get_zend_version()
                                );
+                               sapi_deactivate(TSRMLS_C);
+                               sapi_shutdown();
                                return 0;
                        } break;
                }