php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #58246 relationship of oci8 and pdo_oci?
Submitted: 2008-06-24 01:15 UTC Modified: 2008-06-27 14:27 UTC
From: vincent dot mcintyre at atnf dot csiro dot au Assigned:
Status: Closed Package: oci8 (PECL)
PHP Version: 5.2.0 OS: Debian 4.0 (etch)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vincent dot mcintyre at atnf dot csiro dot au
New email:
PHP Version: OS:

 

 [2008-06-24 01:15 UTC] vincent dot mcintyre at atnf dot csiro dot au
Description:
------------
I am trying to get a php script to talk to a remote oracle
database. I have successfully built your extension and
set it up in the php config; a phpinfo() call shows the
extension loading, as does php -m. I was able to run tests/connect.phpt successfully.

However I cannot get connections to the database to work,
apparently because I lack the pdo_oci module. The exact
error messsage is:
  exception 'PDOException': could not find driver in <path to code module>.

I am trying to understand whether the PDO_OCI module is still needed. This is unclear from the documentation I have been able to review. My confusion would be less if there
was some brief explanation of the relationship between the oci8 and pdo_oci extensions in the README file.

I attempted to build the pdo_oci-1.0 extension but it fails
because my version of instantclient (11.1.0.1) is not supported; no updates of this have been made since 2005 so there seems little point in filing a bug on it... But feel free to reassign this if you think the report will get a response.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-24 01:51 UTC] vincent dot mcintyre at atnf dot csiro dot au
changed Summary: and OS: fields.

To clarify the issue I was having - I was trying to get code
that used the PDO API to access the database. This is the
part that was failing; the oci_* functions seem to work ok.

The suggested patch below might help explain what I am on about.


--- README.orig 2008-06-24 15:42:16.000000000 +1000
+++ README      2008-06-24 15:48:07.000000000 +1000
@@ -7,6 +7,7 @@
 4. Installing from PECL.
 5. Testing OCI8
 6. DRCP and FAN Support
+7. OCI and PDO
 
 1. Common requirements
 ----------------------
@@ -371,3 +372,11 @@
 (the default connection mode) or shared servers.  They do not affect
 earlier versions of Oracle.  The bug is intended to be fixed in Oracle
 Database 11.1.0.7 (as yet unreleased).
+
+7.0 OCI and PDO
+This extension provides only an Oracle-specific programming interface,
+the Oracle Call Interface. If you want to talk to your Oracle database
+with the PHP Data Objects (PDO) interface, which abstracts away the details
+of which database engine you are using, you will also need to install the
+PDO_OCI extension, available from pecl.php.net. 
+
 [2008-06-27 14:27 UTC] christopher dot jones at oracle dot com
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 12:01:29 2024 UTC