php-src/sapi/fpm
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
..
fpm Show build provider and unify version information printing (#14657) 2024-08-12 23:24:41 -03:00
tests Merge branch 'PHP-8.3' 2024-06-16 12:24:25 +01:00
config.m4 Autotools: Replace AC_MSG_ERROR with AC_MSG_FAILURE (#15209) 2024-08-04 07:36:37 +02:00
CREDITS
init.d.php-fpm.in Remove redundant middle newlines in "Autotools" related files 2024-08-12 13:18:32 +02:00
LICENSE
Makefile.frag Trim trailing whitespace in source code files 2018-10-13 14:17:28 +02:00
php-fpm.8.in [skip ci] Add link to FPM docs in FPM man page (#14853) 2024-07-08 14:59:45 +02:00
php-fpm.conf.in sapi/fpm: retiring solaris /dev/poll support proposal. 2024-07-21 17:03:41 +01:00
php-fpm.service.in Fix bug #79014 (PHP-FPM & Primary script unknown) 2020-02-23 19:14:05 +00:00
status.html.in Remove redundant middle newlines in "Autotools" related files 2024-08-12 13:18:32 +02:00
www.conf.in Fix GH-14474: Better document remote user in PHP-FPM access.format (#14521) 2024-06-16 12:32:00 +01:00