pcntl_unshare_04.phpt 386 B

123456789101112131415161718192021
  1. --TEST--
  2. pcntl_unshare() with wrong flag
  3. --EXTENSIONS--
  4. pcntl
  5. posix
  6. --SKIPIF--
  7. <?php
  8. if (!function_exists("pcntl_unshare")) die("skip pcntl_unshare is not available");
  9. ?>
  10. --FILE--
  11. <?php
  12. try {
  13. pcntl_unshare(42);
  14. } catch (ValueError $exception) {
  15. echo $exception->getMessage() . "\n";
  16. }
  17. ?>
  18. --EXPECT--
  19. pcntl_unshare(): Argument #1 ($flags) must be a combination of CLONE_* flags