WP Super Cache: Fix fatal error when getmypid() is unavailable in deb…#46291
WP Super Cache: Fix fatal error when getmypid() is unavailable in deb…#46291shankangke wants to merge 1 commit intoAutomattic:trunkfrom
Conversation
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 Super Cache plugin: No scheduled milestone found for this plugin. If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
46aaf03 to
ea83e75
Compare
…ug logging Add function_exists check before calling getmypid() to prevent fatal errors in environments where the function is disabled (e.g., via disable_functions in php.ini by hosting providers).
ea83e75 to
5560431
Compare
|
This PR has been marked as stale. This happened because:
If this PR is still useful, please do a [trunk merge or rebase](https://github.com/Automattic/jetpack/blob/trunk/docs/git-workflow.md#keeping-your-branch-up-to-date) and otherwise make sure it's up to date and has clear testing instructions. You may also want to ping possible reviewers in case they've forgotten about it. Please close this PR if you think it's not valid anymore — if you do, please add a brief explanation. If the PR is not updated (or at least commented on) in another month, it will be automatically closed. |
Proposed changes:
Add function_exists check before calling getmypid() to prevent fatal errors in environments where the function is disabled (via disable_functions in php.ini by some hosting providers, e.g. [1] [2] [3] [4]).
Other information:
Jetpack product discussion
Not applicable.
Does this pull request change what data or activity we track or use?
No.
Testing instructions: