posix_errno_variation2.phpt 491 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Test function posix_errno() by calling it with its expected arguments
  3. --CREDITS--
  4. Morten Amundsen mor10am@gmail.com
  5. Francesco Fullone ff@ideato.it
  6. #PHPTestFest Cesena Italia on 2009-06-20
  7. --EXTENSIONS--
  8. posix
  9. pcntl
  10. --FILE--
  11. <?php
  12. echo "*** Test by calling function with pid error ***\n";
  13. // Don't rely on PCNTL extension being around
  14. $SIGKILL = 9;
  15. posix_kill((2 ** 22) + 1, $SIGKILL);
  16. var_dump(posix_errno());
  17. ?>
  18. --EXPECT--
  19. *** Test by calling function with pid error ***
  20. int(3)