We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04e0d80 commit 2971b85Copy full SHA for 2971b85
ext/pcntl/pcntl.c
@@ -1262,7 +1262,7 @@ PHP_FUNCTION(pcntl_unshare)
1262
switch (errno) {
1263
#ifdef EINVAL
1264
case EINVAL:
1265
- zend_argument_value_error(1, "must be a combination of CLONE_* flags");
+ zend_argument_value_error(1, "must be a combination of CLONE_* flags or at least one flag is unsupported by the kernel");
1266
RETURN_THROWS();
1267
break;
1268
#endif
ext/pcntl/tests/pcntl_unshare_04.phpt
@@ -23,4 +23,4 @@ try {
23
24
?>
25
--EXPECT--
26
-pcntl_unshare(): Argument #1 ($flags) must be a combination of CLONE_* flags
+pcntl_unshare(): Argument #1 ($flags) must be a combination of CLONE_* flags or at least one flag is unsupported by the kernel
0 commit comments