Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim spaces when parsing php.ini disablefunctions #1015

Merged

Conversation

richardm-stripe
Copy link
Contributor

@richardm-stripe richardm-stripe commented Sep 21, 2020

Fixes #1009

r? @ctrudeau-stripe
cc @stripe/api-libraries

Summary: we were throwing exceptions by trying to call \php_uname on systems where \php_uname isn't supported because it was disabled in the php.ini, and we were not detecting the disabling correctly. I tested this by manually executing the function on my machine and setting various values of disable_functions inside my own /etc/php.ini.

Thanks for the contribution in #1009 @flinebux. I took a slightly different approach because I wanted to try and add a test as well.

@richardm-stripe richardm-stripe force-pushed the richardm-forgive-spaces-in-disable-functions branch from fa93c77 to 850ccad Compare September 21, 2020 18:29
Copy link
Contributor

@ctrudeau-stripe ctrudeau-stripe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks for adding a test!

@richardm-stripe richardm-stripe merged commit 013b99c into master Sep 22, 2020
@richardm-stripe richardm-stripe deleted the richardm-forgive-spaces-in-disable-functions branch September 22, 2020 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants