Skip to content

Commit d850dec

Browse files
committed
Merge pull request #44 from Hywan/option_zend_version
Add Zend version and copyright (oops, I merged the last PR too early)
2 parents 117d5e3 + 1bc35a7 commit d850dec

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

phpdbg.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,14 +1001,19 @@ int main(int argc, char **argv) /* {{{ */
10011001
#endif
10021002

10031003
case 'V': {
1004+
sapi_startup(phpdbg);
1005+
phpdbg->startup(phpdbg);
10041006
printf(
1005-
"phpdbg %s (built: %s %s)\nCopyright (c) 2013 %s\nPHP %s, Copyright (c) 1997-2013 The PHP Group\n",
1007+
"phpdbg %s (built: %s %s)\nCopyright (c) 2013 %s\nPHP %s, Copyright (c) 1997-2013 The PHP Group\n%s",
10061008
PHPDBG_VERSION,
10071009
__DATE__,
10081010
__TIME__,
10091011
PHPDBG_AUTHORS,
1010-
PHP_VERSION
1012+
PHP_VERSION,
1013+
get_zend_version()
10111014
);
1015+
sapi_deactivate(TSRMLS_C);
1016+
sapi_shutdown();
10121017
return 0;
10131018
} break;
10141019
}

0 commit comments

Comments
 (0)