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).
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.'"
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.
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...
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.