-
Notifications
You must be signed in to change notification settings - Fork 156
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
Adds JSON extension as a Composer requirement #460
Conversation
Hi @moebrowne - thanks for the PR! Overall this looks good especially if it resolves an issue. Can you clarify where you see "the extension is being used" and what code causes problems before this change? What issue you were seeing that led you to opening this PR? |
Note tests are failing as well, not sure why. |
Hi, The JSON extension must be installed else the calls we make to the
I'm not sure why the tests are failing as I haven't changed any code? |
Ah, thanks for clarifying @moebrowne, that makes sense! I wonder why we aren't using Can you see any reason not to go that direction instead? |
I agree that we should use We have this issue because some PHP installs don't include PHP JSON extension. Prior to 5.3, WordPress uses some workarounds/polyfills to ensure the functionality @jeffpaul @dkotter I suggest we close this PR and create a new one to replace |
@jeffpaul, after digging into the codebase of Distributor, I want to hold my suggestion above, |
@dkotter any disagreements with @dinhtungdu's latest approach noted above? |
@jeffpaul @dinhtungdu Nope, this sounds good to me. |
Description of the Change
Adds JSON PHP extension as a Composer requirement as the extension is being used
Alternate Designs
N/A
Benefits
Ensures that supporting modules are installed before the code is run
Possible Drawbacks
N/A
Verification Process
No code changes were made
Checklist:
Applicable Issues
N/A