|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52186 phpinfo() shows 10.1 or 11.1 when installed with ORACLE_HOME 10.2 or 11.2
Submitted: 2010-06-25 22:15 UTC Modified: 2010-06-25 23:15 UTC
From: Assigned: sixd (profile)
Status: Closed Package: OCI8 related
PHP Version: 5.3SVN-2010-06-25 (SVN) OS: All
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:
Bug Type:
New email:
PHP Version: OS:


 [2010-06-25 22:15 UTC]
When the OCI8 extensions is installed using an ORACLE_HOME (not Instant Client) 
10.2 or 11.2, the compile time Oracle version shown by phpinfo() is 10.1 or 11.1.  
This is because the displayed value is derived from an Oracle library filename 
extension which, for drop-in compatibility, is not updated for the patch releases 
of Oracle.

Also in some cases installing from PECL no version is shown at all because the 
PHP build scripts can't define the required macro.

The fix is to use the OCI_MAJOR_VERSION and OCI_MINOR_VERSION macros in oci8.c.  
These macros are available with Oracle libraries 10.2 onwards.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-25 22:16 UTC]
-Assigned To: +Assigned To: sixd
 [2010-06-25 23:09 UTC]
Automatic comment from SVN on behalf of sixd
Log: Fix bug #52186 (phpinfo shows 10.1 or 11.1 when installed with ORACLE_HOME 10.2 or 11.2)
 [2010-06-25 23:14 UTC]
-Status: Assigned +Status: Closed
 [2010-06-25 23:14 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

 [2010-06-25 23:15 UTC]
Fixed in PHP 5.3 and trunk. Will be included in any future PECL OCI8 1.4.2 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 24 06:01:31 2024 UTC