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

CRM-21120 Add environment check for existence of mcrypt function #12215

Merged
merged 1 commit into from
May 28, 2018

Conversation

seamuslee001
Copy link
Contributor

@seamuslee001 seamuslee001 commented May 27, 2018

Overview

This is a resubmit of #10918 by @adixon

Before

When Mcrypt extension isn't available no alert shown

After

Alert shown now when Mcrypt extension isn't available.

ping @eileenmcnaughton @totten @colemanw

To test this, check out the branch on a local buildkit build, Observe no warning message in the status checks. Edit the php that is used by the web server to disable mcrypt and restart web server. Observe that a warning now shows.


CRM-21120 Use a function-name agnostic test for encrypting powers

CRM-21120 syntax error, missing semi-colon

CRM-21120 Comma problems
@eileenmcnaughton
Copy link
Contributor

@seamuslee001 I think you should treat this as a reviewer's commit & merge it yourself when you AND jenkins are happy

@eileenmcnaughton
Copy link
Contributor

test thie please

@seamuslee001
Copy link
Contributor Author

Jenkins re test this please

1 similar comment
@seamuslee001
Copy link
Contributor Author

Jenkins re test this please

@eileenmcnaughton
Copy link
Contributor

@seamuslee001 I think this might be an issue from the 5.2 merge to master I did

PHP Fatal error: Cannot redeclare api_v3_ReportTemplateTest::testReportTemplateGetRowsAllReportsACL() in /home/jenkins/buildkit/build/core-12215-20gu9/sites/all/modules/civicrm/tests/phpunit/api/v3/ReportTemplateTest.php on line 230

@seamuslee001
Copy link
Contributor Author

Jenkins re test this please

@seamuslee001
Copy link
Contributor Author

Merging as per Eileen's comment

@seamuslee001 seamuslee001 merged commit 2577233 into civicrm:master May 28, 2018
@eileenmcnaughton eileenmcnaughton deleted the CRM-21120 branch May 28, 2018 09:16
@agileware-fj
Copy link
Contributor

I realise that this is now closed, but only just saw this in the 5.3.0 release notes. Probably worth noting that the Mcrypt extension no longer exists as oh PHP 7.2 and was deprecated in 7.1; this alert rather than fixing an issue is damaging to the environments CiviCRM is hosted in.
http://php.net/manual/en/migration71.deprecated.php

@seamuslee001
Copy link
Contributor Author

@agileware-fj Francis you can still get it from the PECL libraries iirc. https://github.com/civicrm/civicrm-buildkit/blob/master/bin/civi-download-tools#L467

@agileware-fj
Copy link
Contributor

That's correct, but doesn't change that it's been deprecated by PHP for reasonable reasons. Not worth going into it further here; I've opened issue dev/core#236 for an alternative suggestion..

@adixon
Copy link
Contributor

adixon commented Jul 6, 2018

I'd note that the warning is still useful, though the wording should now be adjusted. The warning was introduced to alert an administrator of the potential that a saved encrypted password would no longer work, because it couldn't be unencrypted, which is still true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants