Skip to content

Commit 2508138

Browse files
authored
ext/pcntl: pcnt_setns few nitpicks changes. (#13885)
1 parent ae4978a commit 2508138

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

ext/pcntl/pcntl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,7 +1428,7 @@ PHP_FUNCTION(pcntl_setns)
14281428
switch (errno) {
14291429
case EINVAL:
14301430
case ESRCH:
1431-
zend_argument_value_error(1, "is not a valid process (%d)", pid);
1431+
zend_argument_value_error(1, "is not a valid process (" ZEND_LONG_FMT ")", pid);
14321432
RETURN_THROWS();
14331433

14341434
case ENFILE:
@@ -1455,7 +1455,7 @@ PHP_FUNCTION(pcntl_setns)
14551455
PCNTL_G(last_error) = errno;
14561456
switch (errno) {
14571457
case ESRCH:
1458-
zend_argument_value_error(1, "process no longer available (%d)", pid);
1458+
zend_argument_value_error(1, "process no longer available (" ZEND_LONG_FMT ")", pid);
14591459
RETURN_THROWS();
14601460

14611461
case EINVAL:

ext/pcntl/pcntl.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,5 +992,5 @@ function pcntl_forkx(int $flags): int{}
992992
#endif
993993

994994
#ifdef HAVE_PIDFD_OPEN
995-
function pcntl_setns(int $process_id = null, int $nstype = CLONE_NEWNET): bool {}
995+
function pcntl_setns(?int $process_id = null, int $nstype = CLONE_NEWNET): bool {}
996996
#endif

ext/pcntl/pcntl_arginfo.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)