Skip to content

Commit cb2c5de

Browse files
authored
Add PHP_SBINDIR (#13363)
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 7278364 commit cb2c5de

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
@@ -638,6 +638,7 @@ PHP 8.4 UPGRADE NOTES
638638

639639
- Core:
640640
. PHP_OUTPUT_HANDLER_PROCESSED.
641+
. PHP_SBINDIR.
641642

642643
- Intl:
643644
. 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
@@ -12,6 +12,7 @@
1212
#define PHP_CONFIG_FILE_PATH ""
1313
#define PEAR_INSTALLDIR "@PREFIX@\\pear"
1414
#define PHP_BINDIR "@PREFIX@"
15+
#define PHP_SBINDIR "@PREFIX@"
1516
#define PHP_DATADIR "@PREFIX@"
1617
#define PHP_EXTENSION_DIR "@PREFIX@\\ext"
1718
#define PHP_INCLUDE_PATH ".;@PREFIX@\\pear"

0 commit comments

Comments
 (0)