php-src/sapi/cgi
Niels Dossche f16b34f1d0 Implement GH-10024: support linting multiple files at once using php -l
This is supported in both the CLI and CGI modes. For CLI this required
little changes.

For CGI, the tricky part was that the options parsing happens inside the
loop. This means that options passed after the -l flag were previously
simply ignored. As we now re-enter the loop we would parse the options
again, and if they are handled but don't set the script name, then CGI
will think you want to read from standard in. To keep the same "don't
parse options" behaviour I simply wrapped the options handling inside an
if.

Closes GH-10024.
Closes GH-10710.
2023-07-05 15:20:36 +02:00
..
tests Implement GH-10024: support linting multiple files at once using php -l 2023-07-05 15:20:36 +02:00
cgi_main.c Implement GH-10024: support linting multiple files at once using php -l 2023-07-05 15:20:36 +02:00
cgi_main.stub.php Enable class entry generation for sapi extensions 2021-02-14 12:03:48 +01:00
cgi_main_arginfo.h Improve class entry generation 2021-02-16 13:09:56 +01:00
config.w32 Remove unused Git attributes ident 2018-07-25 00:53:25 +02:00
config9.m4 Revert "Link executable files using non PIC object files. This reduces PIC overhead and improves performance." 2019-10-10 16:28:59 +03:00
CREDITS
Makefile.frag Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
php-cgi.1.in Fixed Bug #65143 Missing php-cgi man page 2013-07-02 10:42:47 +02:00
php.sym