Skip to content

Commit d4f1300

Browse files
authored
opcache: Remove unused sys/ipc.h include from ZendAccelerator.c (#20662)
As far as I can tell that's been there since the initial open source release (commit 528006a). The header defines ftok() and a handful of IPC_* constants, none of which are used here. System V IPC is increasingly being replaced by POSIX IPC and may therefore not be implemented on new and/or hobbyist operating systems such as SerenityOS[1]. In the past that wasn't an issue as the OPCache could be disabled, which is no longer possible as of PHP 8.5[2]. I was able to build with the include patched out, but we would prefer this to be addressed upstream. 1: SerenityOS/serenity#26465 2: #18961
1 parent 88a323e commit d4f1300

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ typedef int gid_t;
8989
#ifndef ZEND_WIN32
9090
# include <sys/types.h>
9191
# include <sys/wait.h>
92-
# include <sys/ipc.h>
9392
# include <pwd.h>
9493
# include <grp.h>
9594
#endif

0 commit comments

Comments
 (0)