From 7ea27d5ff448dca2ab6d657fb06b0b8d4e81abc2 Mon Sep 17 00:00:00 2001 From: Calvin Buckley Date: Mon, 20 Jul 2026 12:43:04 -0300 Subject: [PATCH] main: Add AIX to PHP_OS_FAMILY 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). --- UPGRADING | 2 ++ main/php.h | 2 ++ 2 files changed, 4 insertions(+) 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