Skip to content

Commit 18d5045

Browse files
committed
Add PHP_SBINDIR
The PHP_SBINDIR symbol was defined on *nix systems but never used. This adds the constant similar to PHP_BINDIR also to PHP. On Windows it is the value of prefix configuration when PHP was built (same value as PHP_BINDIR).
1 parent f62f6a6 commit 18d5045

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

UPGRADING

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ PHP 8.4 UPGRADE NOTES
441441

442442
- Core:
443443
. PHP_OUTPUT_HANDLER_PROCESSED.
444+
. PHP_SBINDIR.
444445

445446
- Intl:
446447
. The IntlDateFormatter class exposes now the new PATTERN constant

main/main.stub.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@
8484
* @cvalue PHP_BINDIR
8585
*/
8686
const PHP_BINDIR = UNKNOWN;
87+
/**
88+
* @var string
89+
* @cvalue PHP_SBINDIR
90+
*/
91+
const PHP_SBINDIR = UNKNOWN;
8792
#ifndef PHP_WIN32
8893
/**
8994
* @var string

main/main_arginfo.h

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

win32/build/config.w32.h.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#define CONFIGURATION_FILE_PATH "php.ini"
1414
#define PEAR_INSTALLDIR "@PREFIX@\\pear"
1515
#define PHP_BINDIR "@PREFIX@"
16+
#define PHP_SBINDIR "@PREFIX@"
1617
#define PHP_DATADIR "@PREFIX@"
1718
#define PHP_EXTENSION_DIR "@PREFIX@\\ext"
1819
#define PHP_INCLUDE_PATH ".;@PREFIX@\\pear"

0 commit comments

Comments
 (0)