php-src/sapi/cli
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
cli.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
cli_win32.c
config.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
config.w32 Control VCRT leak reporting via environment variable in debug builds 2020-06-10 09:05:17 +02:00
CREDITS
generate_mime_type_map.php Update mime-db from 1.45.0 to 1.52.0 2022-07-08 07:39:38 +01:00
Makefile.frag
mime_type_map.h Update mime-db from 1.45.0 to 1.52.0 2022-07-08 07:39:38 +01:00
php.1.in [skip ci] Update year to 2023 (#10374) 2023-01-19 12:01:29 +01:00
php_cli.c Implement GH-10024: support linting multiple files at once using php -l 2023-07-05 15:20:36 +02:00
php_cli_process_title.c Use size_t for get_ps_title() length parameter 2022-06-30 13:23:13 +01:00
php_cli_process_title.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_cli_process_title.stub.php Add stubs for SAPIs 2020-07-10 14:20:18 +02:00
php_cli_process_title_arginfo.h Add stubs for SAPIs 2020-07-10 14:20:18 +02:00
php_cli_server.c More usage of known zend_str instead of C string (#11381) 2023-06-08 13:03:29 +01:00
php_cli_server.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
php_cli_server.stub.php Add stubs for SAPIs 2020-07-10 14:20:18 +02:00
php_cli_server_arginfo.h Add stubs for SAPIs 2020-07-10 14:20:18 +02:00
php_http_parser.c Merge branch 'PHP-7.4' into PHP-8.0 2021-07-29 13:28:52 +02:00
php_http_parser.h Replace php_stdint.h header with standard headers (#8613) 2022-05-29 11:20:56 +01:00
ps_title.c Merge branch 'PHP-8.1' into PHP-8.2 2023-05-31 17:10:17 +02:00
ps_title.h Use size_t for get_ps_title() length parameter 2022-06-30 13:23:13 +01:00