mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
27 lines
523 B
PHP
27 lines
523 B
PHP
--TEST--
|
|
Test posix_getpgid() function : error conditions
|
|
--EXTENSIONS--
|
|
posix
|
|
--SKIPIF--
|
|
<?php
|
|
if (!function_exists("posix_getpgid")) {
|
|
print "skip - posix_getpgid() does not exist";
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
echo "*** Testing posix_getpgid() : error conditions ***\n";
|
|
|
|
echo "\n-- Testing posix_getpgid() with negative pid --\n";
|
|
$pid = -99;
|
|
var_dump( posix_getpgid($pid) );
|
|
|
|
echo "Done";
|
|
?>
|
|
--EXPECT--
|
|
*** Testing posix_getpgid() : error conditions ***
|
|
|
|
-- Testing posix_getpgid() with negative pid --
|
|
bool(false)
|
|
Done
|