mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
afc5738154
* 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 |
||
---|---|---|
.. | ||
001.phpt | ||
002.phpt | ||
003.phpt | ||
004.phpt | ||
005.phpt | ||
006.phpt | ||
007.phpt | ||
008.phpt | ||
009.phpt | ||
010.phpt | ||
011.phpt | ||
012.phpt | ||
apache_request_headers.phpt | ||
apache_response_headers.phpt | ||
bug60677.phpt | ||
bug61605.phpt | ||
bug69487.phpt | ||
bug75574_utf8.phpt | ||
bug78323.phpt | ||
bug80849-cgi.phpt | ||
bug81518a.phpt | ||
bug81518b.phpt | ||
ghsa-3qgc-jrrr-25jv.phpt | ||
include.inc | ||
skipif.inc |