diff options
| author | Zeev Suraski <zeev@php.net> | 2001-05-10 14:13:18 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2001-05-10 14:13:18 +0000 |
| commit | 4afa93f716fe12178e676ba3e01e37647c27f4ad (patch) | |
| tree | d7793e79622b2ed84bcd7e1fc2d3397eb2e7423e /sapi/cgi | |
| parent | 45a2e761e7896fc3b15cc05b6462b26c862d82a1 (diff) | |
| download | php-git-4afa93f716fe12178e676ba3e01e37647c27f4ad.tar.gz | |
@- Fixed a possible crash in the PHP CGI when no input file is
@ specified (Zeev)
Fixed bug 7822
Diffstat (limited to 'sapi/cgi')
| -rw-r--r-- | sapi/cgi/cgi_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index c2cb43b212..dc1cfe9191 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -692,8 +692,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine } if (cgi && !file_handle.handle.fp) { - file_handle.handle.fp = VCWD_FOPEN(argv0, "rb"); - if(!file_handle.handle.fp) { + if(!argv0 || !(file_handle.handle.fp = VCWD_FOPEN(argv0, "rb"))) { PUTS("No input file specified.\n"); php_request_shutdown((void *) 0); php_module_shutdown(); |
