Skip to content

pcntl gen stub part fix. #7755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ext/pcntl/pcntl.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function pcntl_unshare(int $flags): bool {}
#ifdef HAVE_RFORK
function pcntl_rfork(int $flags, int $signal = 0): int{}
#endif
#
#ifdef HAVE_RFORK

#ifdef HAVE_FORKX
function pcntl_forkx(int $flags): int{}
#endif
12 changes: 9 additions & 3 deletions ext/pcntl/pcntl_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: fb7d243e0a1b5e85e0bfc0b2add5145cee134b25 */
* Stub hash: e9f831c37e960f9b0db7561faefe61d49dd7df21 */

ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_fork, 0, 0, IS_LONG, 0)
ZEND_END_ARG_INFO()
Expand Down Expand Up @@ -125,9 +125,9 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_rfork, 0, 1, IS_LONG, 0)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, signal, IS_LONG, 0, "0")
ZEND_END_ARG_INFO()
#endif

#if defined(HAVE_FORKX)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_forkx, 0, 0, IS_LONG, 0)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_forkx, 0, 1, IS_LONG, 0)
ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
ZEND_END_ARG_INFO()
#endif
Expand Down Expand Up @@ -174,6 +174,9 @@ ZEND_FUNCTION(pcntl_unshare);
#if defined(HAVE_RFORK)
ZEND_FUNCTION(pcntl_rfork);
#endif
#if defined(HAVE_FORKX)
ZEND_FUNCTION(pcntl_forkx);
#endif


static const zend_function_entry ext_functions[] = {
Expand Down Expand Up @@ -218,6 +221,9 @@ static const zend_function_entry ext_functions[] = {
#endif
#if defined(HAVE_RFORK)
ZEND_FE(pcntl_rfork, arginfo_pcntl_rfork)
#endif
#if defined(HAVE_FORKX)
ZEND_FE(pcntl_forkx, arginfo_pcntl_forkx)
#endif
ZEND_FE_END
};