php-src/sapi/cgi/tests
Calvin Buckley afc5738154
Show build provider and unify version information printing (#14657)
* Show build provider information in "php -v"

Vendors such as distributions can set the `PHP_BUILD_PROVIDER`
variable, that gets printed in phpinfo. However, I find that users check
`php -v` more often than phpinfo to see what PHP they're running. The
problem with this is that it does not show that build provider
information.

This change makes the build provider information printed on an
additional line of the version information.

* Put on same line so it works with or without env var

Unbreaks build without PHP_BUILD_PROVIDER set.

* change wording in provider version text

better grammatically; many different possibilities here though

* Unify SAPI version printing

This makes it so that all of the SAPIs share the same code for printing
version information. This is useful in case of any future changes to the
version information, such as i.e. adding build provider to the output.

* Make include for php_print_version explicit

* Preserve phpdbg version and output channel

php_printf doesn't have same semantics, as phpdbg_out could be on a
different output than stdout/err. Also add the phpdbg version (in case
it differs from PHP's, to keep similar output before this PR)

* remove size variables

we don't use them and CI doesn't like unused variables

* Fix format string insecurity
2024-08-12 23:24:41 -03:00
..
001.phpt Show build provider and unify version information printing (#14657) 2024-08-12 23:24:41 -03:00
002.phpt Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
003.phpt Run tidy 2020-09-18 14:28:32 +02:00
004.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
005.phpt Skip tests if extension or SAPI is not included. (#9939) 2022-11-11 21:17:15 -05:00
006.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
007.phpt Clean DONE tags from tests 2019-11-07 21:31:47 +01:00
008.phpt Align highlight_string|file with HTML standard and modern browsers 2023-08-12 15:08:28 +01:00
009.phpt
010.phpt
011.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
012.phpt Implement GH-10024: support linting multiple files at once using php -l 2023-07-05 15:20:36 +02:00
apache_request_headers.phpt Reindent phpt files 2020-02-03 22:52:20 +01:00
apache_response_headers.phpt Clean DONE tags from tests 2019-11-07 21:31:47 +01:00
bug60677.phpt Move shebang handling into the lexer 2019-07-15 16:25:49 +02:00
bug61605.phpt Add many missing closing PHP tags to tests 2020-08-09 22:03:36 +02:00
bug69487.phpt Update request startup error messages 2022-07-18 23:19:59 +01:00
bug75574_utf8.phpt Fix GH-10489: run-tests.php does not escape path when building cmd (#10560) 2023-02-25 14:02:06 +00:00
bug78323.phpt Fix bug #78323: Code 0 is returned on invalid options 2020-01-27 13:32:19 +01:00
bug80849-cgi.phpt Fix #80849: HTTP Status header truncation 2021-07-15 19:10:53 +02:00
bug81518a.phpt Fix #81518: Header injection via default_mimetype / default_charset 2021-10-14 12:16:19 +02:00
bug81518b.phpt Fix #81518: Header injection via default_mimetype / default_charset 2021-10-14 12:16:19 +02:00
ghsa-3qgc-jrrr-25jv.phpt Fix GHSA-3qgc-jrrr-25jv 2024-06-05 00:29:19 -05:00
include.inc Fix GH-10489: run-tests.php does not escape path when building cmd (#10560) 2023-02-25 14:02:06 +00:00
skipif.inc Reindent phpt files 2020-02-03 22:52:20 +01:00