Skip to content

opcache: Remove unused sys/ipc.h include from ZendAccelerator.c - #20662

Merged
ndossche merged 1 commit into
php:masterfrom
linusg:remove-sys-ipc
Dec 7, 2025
Merged

opcache: Remove unused sys/ipc.h include from ZendAccelerator.c#20662
ndossche merged 1 commit into
php:masterfrom
linusg:remove-sys-ipc

Conversation

@linusg

Copy link
Copy Markdown
Contributor

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

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: php#18961

@ndosschendossche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ndossche
ndossche merged commit d4f1300 into php:masterDec 7, 2025
10 checks passed
@linusg
linusg deleted the remove-sys-ipc branch December 8, 2025 09:37
@iluuu1994

Copy link
Copy Markdown
Member

Should probably be backported to 8.5 then?

@ndossche

Copy link
Copy Markdown
Member

Sure this is very-low risk. I'll backport.

ndossche pushed a commit that referenced this pull request Dec 8, 2025
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
ndossche added a commit that referenced this pull request Dec 8, 2025
* PHP-8.5:
opcache: Remove unused sys/ipc.h include from ZendAccelerator.c (#20662)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@linusg@iluuu1994@ndossche