PHP7 and a desire to connect to an Oracle database.
It should work, but currently the Oracle Database Driver included within Joomla is using the PDO_OCI extension's functions, rather than the OCI8 extension.
I learned a few months back that the PDO_OCI extension isn't really well supported under PHP 7 and there seemed to be a strong likelihood that wouldn't change in the near future, so in order to better support those building extensions potentially connecting to Oracle databases I'm going to work on an OCI8 version to contribute back to the project.
Some references for the issue:
http://stackoverflow.com/questions/37191161/install-pdo-oci-on-php7
yiisoft/yii2#10975
Since I'm just starting the process at the moment, I'm wondering if I should go ahead and do so from within the Joomla CMS repository or whether I should update a separate Database Framework/Platform package that's located elsewhere?
Hi Brian,
This is not a matter of whether anybody will run Joomla on Oracle (I certainly don't expect anybody too and I don't use Oracle as a platform for running Joomla).
But from an extension building standpoint it's certainly very useful to be able to connect to an Oracle database in my workplace since that's where most of our useful data is housed, so having the Oracle driver available allows me to build Joomla extensions that utilize an Oracle database for retrieving information and that's primarily what I use it for: running queries against an Oracle database and retrieving data and then integrating that into an overall Joomla extension that is likely using MySQL to do everything else.
Sorry I clearly didnt understand your original comment as meaning "connecting to oracle" as an external data source
I'm going to submit a pull request soon so I can start taking a look at the code cleanup suggestions that Travis provides, but currently things are working pretty well with what I have at the moment using the OCI8 functions.
The existing PDO Oracle Driver, Query, and Iterator classes were renamed to pdooracle.php so that the new versions using the OCI8 functions could use the oracle.php names.
Things I've tested so far on my end:
Pending (TODO and/or Not Tested Yet, partially because I don't normally utilize these particular features):
Went ahead and cleaned up the Codesniffer errors reported by Travis CI already so it should be showing the green light currently over on Github for the PR.
So we can close here as we have a PR?
If we have a PR we close the issues. So we don't have dublicate places to discuss. Closing than. Thanks!
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-10-27 20:08:02 |
Closed_By | ⇒ | zero-24 |
Lets be realistic should Oracle even be supported at all - the stats
suggest not
On 25 October 2016 at 23:04, orware notifications@github.com wrote:
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/