123456789101112131415161718192021 |
- --TEST--
- pcntl_unshare() with wrong flag
- --EXTENSIONS--
- pcntl
- posix
- --SKIPIF--
- <?php
- if (!function_exists("pcntl_unshare")) die("skip pcntl_unshare is not available");
- ?>
- --FILE--
- <?php
- try {
- pcntl_unshare(42);
- } catch (ValueError $exception) {
- echo $exception->getMessage() . "\n";
- }
- ?>
- --EXPECT--
- pcntl_unshare(): Argument #1 ($flags) must be a combination of CLONE_* flags
|