php-src/sapi
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
..
apache2handler Implement GH-10854: TSRM should set a smarter value for expected_threads (#10867) 2023-03-17 17:08:47 +01:00
cgi Implement GH-10024: support linting multiple files at once using php -l 2023-07-05 15:20:36 +02:00
cli Implement GH-10024: support linting multiple files at once using php -l 2023-07-05 15:20:36 +02:00
embed main/SAPI: make "ini_entries" a const string 2023-01-04 12:49:48 +00:00
fpm When running FPM tests, pass -n option to php-fpm 2023-06-15 18:00:50 +01:00
fuzzer Fix -Wstrict-prototypes warnings in fuzzer SAPI (#11277) 2023-05-20 11:43:30 +02:00
litespeed Fix GH-11141: Could not open input file: should be sent to stderr 2023-05-05 19:31:23 +02:00
phpdbg Revert "Revert "Remove name field from the zend_constant struct (#10954)"" 2023-07-04 16:42:40 +02:00