You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like PHP compiled with '--enable-sigchild' will have issues with php-shellcommand when proc_* functions are used (by default). php-shellcommand will return an error when the command executes successfully.
There is no issue when using useExec option on a system with PHP compiled with '--enable-sigchild'.
There is not much that can be done other than detecting the '--enable-sigchild' configure command option and adding the useExec option. Unfortunately, there doesn't appear to be any way to do this aside from parsing phpinfo().
Is there any other way to handle this issue?
Thanks.
The text was updated successfully, but these errors were encountered:
Hmm, I'm not sure. You seem to have done some investigation. What is --enable-sigchild for? And is this enabled by default in some major packages (Debian, Alpipne, etc.)? If not I would say we can ignore this here. Unless there is a simple workaround.
The option is listed at https://www.php.net/manual/en/configure.about.php as "Enable PHP's own SIGCHLD handler." I don't know much about it. I think it is used to remedy accumulation of zombie processes.
I'm just letting you know that it seems like php-shellcommand (without useExec) doesn't work right when --enable-sigchild option was used to when compiling PHP. Also, I'm asking for possible workaround ideas.
Hi,
It looks like PHP compiled with '--enable-sigchild' will have issues with
php-shellcommand
when proc_* functions are used (by default).php-shellcommand
will return an error when the command executes successfully.The reason is discussed in the following PHP bug reports:
https://bugs.php.net/bug.php?id=61873
https://bugs.php.net/bug.php?id=71804
There is no issue when using
useExec
option on a system with PHP compiled with '--enable-sigchild'.There is not much that can be done other than detecting the '--enable-sigchild' configure command option and adding the
useExec
option. Unfortunately, there doesn't appear to be any way to do this aside from parsing phpinfo().Is there any other way to handle this issue?
Thanks.
The text was updated successfully, but these errors were encountered: