php.net |  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: sixd@php.net Assigned: sixd (profile)
Status: Closed Package: OCI8 related
PHP Version: 5.3SVN-2010-06-25 (SVN) OS: All
Private report: No CVE-ID: None
 [2010-06-25 22:15 UTC] sixd@php.net
Description:
------------
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.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-25 22:16 UTC] sixd@php.net
-Assigned To: +Assigned To: sixd
 [2010-06-25 23:09 UTC] sixd@php.net
Automatic comment from SVN on behalf of sixd
Revision: http://svn.php.net/viewvc/?view=revision&revision=300752
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] sixd@php.net
-Status: Assigned +Status: Closed
 [2010-06-25 23:14 UTC] sixd@php.net
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
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 [2010-06-25 23:15 UTC] sixd@php.net
Fixed in PHP 5.3 and trunk. Will be included in any future PECL OCI8 1.4.2 
release.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri Jul 01 23:05:45 2022 UTC