mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
31 lines
631 B
PHP
31 lines
631 B
PHP
--TEST--
|
|
Test posix_kill() function : error conditions
|
|
--EXTENSIONS--
|
|
posix
|
|
--FILE--
|
|
<?php
|
|
echo "*** Testing posix_kill() : error conditions ***\n";
|
|
|
|
|
|
echo "\n-- Testing posix_kill() function with invalid signal --\n";
|
|
$pid = posix_getpid();
|
|
$sig = 999;
|
|
var_dump( posix_kill($pid, 999) );
|
|
|
|
echo "\n-- Testing posix_kill() function with negative pid --\n";
|
|
$pid = -999;
|
|
$sig = 9;
|
|
var_dump( posix_kill($pid, 999) );
|
|
|
|
echo "Done";
|
|
?>
|
|
--EXPECT--
|
|
*** Testing posix_kill() : error conditions ***
|
|
|
|
-- Testing posix_kill() function with invalid signal --
|
|
bool(false)
|
|
|
|
-- Testing posix_kill() function with negative pid --
|
|
bool(false)
|
|
Done
|