[php-src] Issue #19381: Test `posix_kill_pidoverflow` depends on `pcntl` but not skipped if it's disabled
| From: | fuhsnn | Date: | Tue, 05 Aug 2025 18:08:10 +0000 |
| Subject: | [php-src] Issue #19381: Test `posix_kill_pidoverflow` depends on `pcntl` but not skipped if it's disabled | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-250562@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/19381
Author: fuhsnn
### Description
The said test uses SIGTERM:
https://github.com/php/php-src/blob/5b3d0e4c09cd203fd22139d3f21ddb6ab1b871ba/ext/posix/tests/posix_kill_pidoverflow.phpt#L10-L14
which I believe is only a [predefined
constant](https://www.php.net/manual/en/pcntl.constants.php#constant.sigterm) if
pcntl
module is built.
The context is ./configure doesn't know
[slimcc](https://github.com/fuhsnn/slimcc), the C compiler I work on, so pcntl
wasn't enabled by default, and the test failed with Fatal error: Uncaught Error:
Undefined constant "SIGTERM" before reaching the expected exception.
I re-configured PHP with --enable-pcntl and the pass passed.
### PHP Version
```plain
PHP 8.5.0alpha4 (cli)
```
### Operating System
Debian 12 x86-64