Fix for php -v

This commit is contained in:
Zeev Suraski 1999-04-08 14:55:42 +00:00
parent a12d0a1c1c
commit 9d1a9331b3

View File

@ -1431,6 +1431,11 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
php3_noheader();
break;
case 'v':
if (!_cgi_started) {
if (php3_module_startup(CLS_C ELS_CC) == FAILURE || php3_request_startup(CLS_C ELS_CC) == FAILURE) {
return FAILURE;
}
}
php3_printf("%s\n", PHP_VERSION);
exit(1);
break;