]> granicus.if.org Git - php/commitdiff
Fix for php -v
authorZeev Suraski <zeev@php.net>
Thu, 8 Apr 1999 14:55:42 +0000 (14:55 +0000)
committerZeev Suraski <zeev@php.net>
Thu, 8 Apr 1999 14:55:42 +0000 (14:55 +0000)
main/main.c

index 841f4327d350eabb8bd73cb5cf8b39bb15be3ec0..b30446184f8beeafb6ca889e77505a1ea01099db 100644 (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;