TimTideways
New Pleskian
Since PHP 8.0, PHP provides the
github.com
The contents of this variable shows up in the PHPInfo output and since PHP 8.4 it also shows up when running
Since Plesk is the provider of the PHP packages / the PHP binaries when running Plesk, it would make sense for Plesk to specify the
Please find the following resources for further context:
PHP_BUILD_PROVIDER
variable to indicate the “origin” of a PHP binary:display info about system used to build and its provider · php/php-src@ad0d2e4
The PHP Interpreter. Contribute to php/php-src development by creating an account on GitHub.
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:
- The addition of the
PHP_BUILD_PROVIDER
variable: display info about system used to build and its provider · php/php-src@ad0d2e4 - Setting the variable for the PHP Docker images: Set the PHP_BUILD_PROVIDER variable by TimWolla · Pull Request #1441 · docker-library/php
- Setting the variable for Homebrew builds: php: Set the `PHP_BUILD_PROVIDER` env variable by edorian · Pull Request #204084 · Homebrew/homebrew-core
- Making the build provider contents available to PHP extensions: Add `php_build_provider()` by TimWolla · Pull Request #18168 · php/php-src