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-19505 - CRM_Core_Error::handle() - Fix detection of mysql driver #9260

Merged
merged 1 commit into from
Oct 14, 2016

Conversation

totten
Copy link
Member

@totten totten commented Oct 14, 2016

The check preg_match('/^mysql:/', $_DB_DATAOBJECT['CONFIG']['database'])
assumes that the admin is manually changing CIVICRM_DSN to indicate
preferred driver. Since we determine the driver automatically in 4.7.12+,
this check doesn't work.

This new check determines what driver is actually in use.


The check `preg_match('/^mysql:/', $_DB_DATAOBJECT['CONFIG']['database'])`
assumes that the admin is manually changing `CIVICRM_DSN` to indicate
preferred driver. Since we determine the driver automatically in 4.7.12+,
this check doesn't work.

This new check determines what driver is actually in use.
@totten
Copy link
Member Author

totten commented Oct 14, 2016

jenkins, test this please

@totten totten merged commit f9dc363 into civicrm:master Oct 14, 2016
@totten totten deleted the master-error-mysql branch October 14, 2016 17:09
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.

2 participants