mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
main: Add PHP_BUILD_PROVIDER userland constant (#19157)
This constant can be handy for tools like PIE to determine the origin of a PHP binary to provide better output / diagnostics. see php/pie#275 see php/php-src#18168
This commit is contained in:
1
NEWS
1
NEWS
@@ -5,6 +5,7 @@ PHP NEWS
|
||||
- Core:
|
||||
. Add clone-with support to the clone() function. (timwolla, edorian)
|
||||
. Fix support for non-userland stream notifiers. (timwolla)
|
||||
. Added PHP_BUILD_PROVIDER constant. (timwolla)
|
||||
|
||||
- Curl:
|
||||
. Add support for CURLINFO_CONN_ID in curl_getinfo() (thecaliskan)
|
||||
|
||||
@@ -536,6 +536,7 @@ PHP 8.5 UPGRADE NOTES
|
||||
|
||||
- Core:
|
||||
. PHP_BUILD_DATE.
|
||||
. PHP_BUILD_PROVIDER.
|
||||
|
||||
- Curl:
|
||||
. CURLINFO_USED_PROXY.
|
||||
|
||||
@@ -41,6 +41,14 @@ const PHP_VERSION_ID = UNKNOWN;
|
||||
*/
|
||||
const PHP_BUILD_DATE = UNKNOWN;
|
||||
|
||||
#ifdef PHP_BUILD_PROVIDER
|
||||
/**
|
||||
* @var string
|
||||
* @cvalue PHP_BUILD_PROVIDER
|
||||
*/
|
||||
const PHP_BUILD_PROVIDER = UNKNOWN;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
* @cvalue PHP_ZTS
|
||||
|
||||
5
main/main_arginfo.h
generated
5
main/main_arginfo.h
generated
@@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: cb5c9a3e48b18a773264378099267550ca9e4fc1 */
|
||||
* Stub hash: e8b81aa6f03d36f35def2bb1fcc3563b284a113b */
|
||||
|
||||
static void register_main_symbols(int module_number)
|
||||
{
|
||||
@@ -10,6 +10,9 @@ static void register_main_symbols(int module_number)
|
||||
REGISTER_STRING_CONSTANT("PHP_EXTRA_VERSION", PHP_EXTRA_VERSION, CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("PHP_VERSION_ID", PHP_VERSION_ID, CONST_PERSISTENT);
|
||||
REGISTER_STRING_CONSTANT("PHP_BUILD_DATE", php_build_date, CONST_PERSISTENT);
|
||||
#if defined(PHP_BUILD_PROVIDER)
|
||||
REGISTER_STRING_CONSTANT("PHP_BUILD_PROVIDER", PHP_BUILD_PROVIDER, CONST_PERSISTENT);
|
||||
#endif
|
||||
REGISTER_BOOL_CONSTANT("PHP_ZTS", PHP_ZTS, CONST_PERSISTENT);
|
||||
REGISTER_BOOL_CONSTANT("PHP_DEBUG", PHP_DEBUG, CONST_PERSISTENT);
|
||||
REGISTER_STRING_CONSTANT("PHP_OS", PHP_OS_STR, CONST_PERSISTENT);
|
||||
|
||||
Reference in New Issue
Block a user