Skip to content

Conversation

@AllenJB
Copy link
Contributor

@AllenJB AllenJB commented Oct 11, 2025

Related to #2163

As I don't have a Solaris box, the pcntl_forkx documentation is based on the php-src code and comments, combined with the Solaris documentation

pcntl_wifcontinued is wrapped in an ifdef in php-src. Based on commit / NEWS history this was because it wasn't available on NetBSD (but based on search results appears to be in more recent versions). Is this significant enough to note? eg. A note along the lines of:

This function may not be available on some systems. Check you systems fork(2) man page for availability.

@ndossche ndossche requested a review from devnexen December 14, 2025 10:12
<refentry xml:id="function.pcntl-forkx" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>pcntl_forkx</refname>
<refpurpose>Forks the currently running process, with additional options (Solaris only)</refpurpose>
Copy link
Member

@devnexen devnexen Dec 14, 2025

Choose a reason for hiding this comment

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

nit: Solaris only, illumos systems support it too

<methodparam><type>int</type><parameter>flags</parameter></methodparam>
</methodsynopsis>
<para>
The <function>pcntl_forkx</function> function creates a child
Copy link
Member

Choose a reason for hiding this comment

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

note that forkx, x stands for extended version of. Also what is mentioned here is true, unless you pass flags so even though there is 'read the manual if you want to know more', a little mention of these would not kill :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants