Skip to content

Check that required classes/functions have not been disabled#2319

Merged
westonruter merged 1 commit intodevelopfrom
fix/function-class-dependency-checking
May 15, 2019
Merged

Check that required classes/functions have not been disabled#2319
westonruter merged 1 commit intodevelopfrom
fix/function-class-dependency-checking

Conversation

@westonruter
Copy link
Copy Markdown
Member

Checking that the required PHP extensions are present is not enough, as some of the functions/classes in these extensions may be disabled (e.g. curl_multi_init()). So we need to check that the functions and classes we use are actually present in addition to their extensions being loaded.

Amends #2183.

@westonruter westonruter added this to the v1.1.2 milestone May 14, 2019
@westonruter westonruter requested a review from swissspidy May 14, 2019 23:20
@googlebot googlebot added the cla: yes Signed the Google CLA label May 14, 2019
// See composer.json for this list.
$_amp_required_extensions = array(
'curl',
'date',
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I removed date because this is actually a WordPress dependency.

Copy link
Copy Markdown
Collaborator

@swissspidy swissspidy left a comment

Choose a reason for hiding this comment

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

This stuff gets more and more complex 🙃

@westonruter westonruter merged commit 437c335 into develop May 15, 2019
@westonruter westonruter deleted the fix/function-class-dependency-checking branch May 15, 2019 22:45
westonruter added a commit that referenced this pull request May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Signed the Google CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants