Skip to content

Commit 7ea27d5

Browse files
committed
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).
1 parent 61a987b commit 7ea27d5

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

UPGRADING

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,8 @@ PHP 8.6 UPGRADE NOTES
566566
- Core:
567567
. In case of a hard OOM PHP now calls abort() instead of exit(1), changing
568568
the exit code to 134 and possibly creating a core dump.
569+
. The PHP_OS_FAMILY constant has an AIX value for when running on AIX or
570+
IBM i via PASE.
569571

570572
========================================
571573
14. Performance Improvements

main/php.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
# define PHP_OS_FAMILY "Darwin"
4343
#elif defined(__sun__)
4444
# define PHP_OS_FAMILY "Solaris"
45+
#elif defined(_AIX)
46+
# define PHP_OS_FAMILY "AIX"
4547
#elif defined(__linux__)
4648
# define PHP_OS_FAMILY "Linux"
4749
#else

0 commit comments

Comments
 (0)