[php-src] master: main: Add AIX to PHP_OS_FAMILY (#22834)
Calvin Buckley via GitHub <[email protected]> Mon, 20 Jul 2026 19:15:17 +0000
| Newsgroups | gmane.comp.php.cvs.general |
|---|---|
| Message-ID | <[email protected]> |
Author: Calvin Buckley (NattyNarwhal)
Committer: GitHub (web-flow)
Pusher: NattyNarwhal
Date: 2026-07-20T16:15:14-03:00
Commit: https://github.com/php/php-src/commit/6c988e0abb0b341c5f21ef799437728b4b58f75f
Raw diff: https://github.com/php/php-src/commit/6c988e0abb0b341c5f21ef799437728b4b58f75f.diff
main: Add AIX to PHP_OS_FAMILY (#22834)
There are two OSes in this family: AIX itself, and IBM i PASE, which
provides an AIX syscall emulation environment. uname is different
between them (AIX/OS400).
Changed paths:
M UPGRADING
M main/php.h
Diff:
diff --git a/UPGRADING b/UPGRADING
index 1b7cda4b8612..e1976941ddf1 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -566,6 +566,8 @@ PHP 8.6 UPGRADE NOTES
- Core:
. In case of a hard OOM PHP now calls abort() instead of exit(1), changing
the exit code to 134 and possibly creating a core dump.
+ . The PHP_OS_FAMILY constant has an AIX value for when running on AIX or
+ IBM i via PASE.
========================================
14. Performance Improvements
diff --git a/main/php.h b/main/php.h
index c7516bca3124..a0c639810b8f 100644
--- a/main/php.h
+++ b/main/php.h
@@ -42,6 +42,8 @@
# define PHP_OS_FAMILY "Darwin"
#elif defined(__sun__)
# define PHP_OS_FAMILY "Solaris"
+#elif defined(_AIX)
+# define PHP_OS_FAMILY "AIX"
#elif defined(__linux__)
# define PHP_OS_FAMILY "Linux"
#else