Skip to content

Commit 7f1b360

Browse files
authored
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 #18168
1 parent e91d2c7 commit 7f1b360

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PHP NEWS
55
- Core:
66
. Add clone-with support to the clone() function. (timwolla, edorian)
77
. Fix support for non-userland stream notifiers. (timwolla)
8+
. Added PHP_BUILD_PROVIDER constant. (timwolla)
89

910
- Curl:
1011
. Add support for CURLINFO_CONN_ID in curl_getinfo() (thecaliskan)

UPGRADING

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ PHP 8.5 UPGRADE NOTES
536536

537537
- Core:
538538
. PHP_BUILD_DATE.
539+
. PHP_BUILD_PROVIDER.
539540

540541
- Curl:
541542
. CURLINFO_USED_PROXY.

main/main.stub.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@
4141
*/
4242
const PHP_BUILD_DATE = UNKNOWN;
4343

44+
#ifdef PHP_BUILD_PROVIDER
45+
/**
46+
* @var string
47+
* @cvalue PHP_BUILD_PROVIDER
48+
*/
49+
const PHP_BUILD_PROVIDER = UNKNOWN;
50+
#endif
51+
4452
/**
4553
* @var bool
4654
* @cvalue PHP_ZTS

main/main_arginfo.h

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)