Issues with proc_* functions and PHP '--enable-sigchild' configure command option
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 42/100
Research direction
Start by reproducing the reported behavior with PHP compiled using --enable-sigchild and the default proc_* path, then compare it with the useExec option. Review the linked PHP bug reports and determine whether phpinfo() exposes enough information to detect the configuration; done means successful commands no longer return an error in that environment.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- PHP
- Stars
- 325
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mikehaertl/php-shellcommand
-
Difficulty 1/5 Under an hour Newbie friendliness 42/100
mikehaertl/php-shellcommand#60 · 1 comment ·
-
Ideas for addArgOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
mikehaertl/php-shellcommand#46 · 8 comments ·
All issues in mikehaertl/php-shellcommand
Similar issues
-
sync-en
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
sync-en
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 3 days
-
Перевод устарел
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
Form
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
symfony/symfony-docs#23159 ·
Maintainers usually reply within 3 days
-
bug component: bulk editor support
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Yoast/wordpress-seo#23669 ·
Maintainers usually reply within 3 days