-
Couldn't load subscription status.
- Fork 8k
Closed
Closed
Copy link
Labels
Description
Description
The said test uses SIGTERM:
php-src/ext/posix/tests/posix_kill_pidoverflow.phpt
Lines 10 to 14 in 5b3d0e4
| try { | |
| posix_kill(PHP_INT_MAX, SIGTERM); | |
| } catch (\ValueError $e) { | |
| echo $e->getMessage(), PHP_EOL; | |
| } |
which I believe is only a predefined constant if
pcntl module is built.
The context is ./configure doesn't know 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
PHP 8.5.0alpha4 (cli)
Operating System
Debian 12 x86-64