? Success

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
15 Mar 2015

As of March 4, PHP 7 no longer has the ext/mysql extension. This PR blocks instantiating the driver in this environment by throwing an exception if the PHP major version is 7 or greater (6 is left as allowed since the code is presumably present in the once-upon-a-time-in-development PHP 6 branch).

avatar mbabker mbabker - open - 15 Mar 2015
avatar joomla-cms-bot joomla-cms-bot - change - 15 Mar 2015
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 15 Mar 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 15 Mar 2015
Category Libraries
avatar brianteeman
brianteeman - comment - 15 Mar 2015

Forgive me if I havent got my head around this correctly but wouldnt it be better (if possible) to have something less destructive
"'This driver is unsupported in PHP 7, using mysqli driver instead.'"


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6433.
avatar mbabker
mbabker - comment - 15 Mar 2015

In our code, we could try catching if the config is set for mysql and use the mysqli driver via JDatabaseDriver::getInstance(), however I'd suggest that should be a separate PR. This one focuses solely on making sure this class cannot be used in PHP 7 as the platform does not support it.

avatar mbabker
mbabker - comment - 15 Mar 2015

See #6442

avatar mbabker
mbabker - comment - 10 May 2015

This and #6442 really just need top level decisions at this point then merging into a branch. It's much easier to keep working on PHP 7 compatibility issues if PRs are merged somewhere...

avatar wilsonge wilsonge - change - 11 May 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-05-11 00:08:48
Closed_By wilsonge
avatar wilsonge wilsonge - close - 11 May 2015
avatar wilsonge wilsonge - reference | fd372ec - 11 May 15
avatar wilsonge wilsonge - merge - 11 May 2015
avatar wilsonge wilsonge - close - 11 May 2015
avatar wilsonge wilsonge - change - 11 May 2015
Milestone Added:
avatar mbabker mbabker - head_ref_deleted - 11 May 2015

Add a Comment

Login with GitHub to post a comment