|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2018-09-18 09:04 UTC] kaplun at protonmail dot com
Description:
------------
pcntl_async_signals(), although available in the PHP interpreter is not available under phpdbg.
Test script:
---------------
<?php
echo pcntl_async_signals($on=1);
echo pcntl_async_signals();
Expected result:
----------------
Running: phpdbg -qrr test.php
I expect it to output "1".
Actual result:
--------------
[Uncaught Error in /tmp/test.php on line 2]
Error: Call to undefined function pcntl_async_signals() in /tmp/test.php:2
Stack trace:
#0 {main}
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 22 19:00:02 2025 UTC |
> The php.ini you see is actually provided by way of php7.2-common's php.ini-production. We can't do anything for it. This is true for Ubuntu. On CentOS7/Webtatic instead they are not explicitly disabled, and that what leads to: [Uncaught Error in /tmp/test.php on line 2] Error: Call to undefined function pcntl_async_signals() in /tmp/test.php:2 Stack trace: #0 {main} So either webtatic "forgot" to enable pcntl_async_signals during phpdbg compilation, or there's a general reason why this can not be available in phpdbg at all, which bring me to the reason why opened the bug report in the first place: there's no documentation around stating that phpdbg does not support pcntl_async_signals (at least I wasn't able to find it), however both on CentOS and Ubuntu this is not an available feature (either not compiled in, or explicitly disabled). Is this: * a bug (for CentOS/Ubuntu) * a missed documentation (for PHP.net as a whole and/or phpdbg) * a missing feature (for PHP.net as whole and/or phpdbg)