Input Specify the `PHP_BUILD_PROVIDER` environment variable when compiling PHP

TimTideways

New Pleskian
Since PHP 8.0, PHP provides the PHP_BUILD_PROVIDER variable to indicate the “origin” of a PHP binary:


The contents of this variable shows up in the PHPInfo output and since PHP 8.4 it also shows up when running php -v (using the example of the PHP docker image):

Code:
root@3238e47e74fb:/# php -v
PHP 8.4.5 (cli) (built: Mar 17 2025 23:15:40) (NTS)
Copyright (c) The PHP Group
Built by https://github.com/docker-library/php
Zend Engine v4.4.5, Copyright (c) Zend Technologies

Since Plesk is the provider of the PHP packages / the PHP binaries when running Plesk, it would make sense for Plesk to specify the PHP_BUILD_PROVIDER variable when building PHP. This would provide some advertising to Plesk and it would help simplifying support for other projects, including PHP itself, since knowing that the user runs PHP with Plesk allows to provide directed support, for example with regard to file system paths / directory structure.

Please find the following resources for further context:
 
Back
Top