Skip to content

Issue 2828510: Prevent installation of Commerce if bcmath PHP extensi… - #560

Merged
bojanz merged 2 commits into
drupalcommerce:8.x-2.xfrom
mitrpaka:feature/28282510-prevent_installation
Nov 21, 2016
Merged

Issue 2828510: Prevent installation of Commerce if bcmath PHP extensi…#560
bojanz merged 2 commits into
drupalcommerce:8.x-2.xfrom
mitrpaka:feature/28282510-prevent_installation

Conversation

@mitrpaka

Copy link
Copy Markdown
Contributor

…on missing

@mglaman

mglaman commented Nov 21, 2016

Copy link
Copy Markdown
Contributor

@mitrpaka this is true, however were you able to run composer install with bcmath missing?

@bojanz

bojanz commented Nov 21, 2016

Copy link
Copy Markdown
Contributor

We're missing an ext-bcmath: "*" requirement in the composer.json, in addition to the code in this PR

Comment thread commerce.install Outdated
if ($phase == 'install') {
if (!extension_loaded('bcmath')) {
$requirements['commerce'] = [
'description' => t("Commerce requires you to enable the following PHP extension: bcmath"),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wrong indentation for 'description' and 'severity'. The error message can be inside single quotes. The message should be 'Commerce requires the bcmath PHP extension.'

@mglaman
mglaman force-pushed the feature/28282510-prevent_installation branch from a31d95d to 46d00b0 Compare November 21, 2016 14:33
@mglaman

mglaman commented Nov 21, 2016

Copy link
Copy Markdown
Contributor

@bojanz et @mitrpaka I went ahead and addressed those issues on the PR in @46d00b002c07f8dbd8ee7b64277299a8138c6965

@mglaman
mglaman force-pushed the feature/28282510-prevent_installation branch from 46d00b0 to 73826ea Compare November 21, 2016 14:36
@bojanz
bojanz merged commit b9305da into drupalcommerce:8.x-2.x Nov 21, 2016
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.

3 participants