mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Fix for php -v
This commit is contained in:
parent
a12d0a1c1c
commit
9d1a9331b3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user