From: cjbj at hotmail dot com
Operating system: RH Linux AS 3
PHP version: 4CVS-2004-02-02 (stable)
PHP Bug Type: *Configuration Issues
Bug description: Configuration patch to compile oci8 extension with Oracle 10g
Description:
------------
This patch to ext/oci8/config.m4 allows compilation with Oracle 10g:
--- config.m4.orig 2003-10-03 16:07:05.000000000 +1000
+++ config.m4 2004-02-02 16:09:26.000000000 +1100
@@ -23,6 +23,8 @@
if test -s "$OCI8_DIR/orainst/unix.rgs"; then
OCI8_VERSION=`grep '"ocommon"' $OCI8_DIR/orainst/unix.rgs | sed 's/[
][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4`
test -z "$OCI8_VERSION" && OCI8_VERSION=7.3
+ elif test -f $OCI8_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.10.1; then
+ OCI8_VERSION=10.1
elif test -f $OCI8_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.9.0; then
OCI8_VERSION=9.0
elif test -f $OCI8_DIR/lib/libclntsh.$SHLIB_SUFFIX_NAME.8.0; then
@@ -115,6 +117,26 @@
])
;;
+ 10.1)
+ PHP_ADD_LIBRARY(clntsh, 1, OCI8_SHARED_LIBADD)
+ PHP_ADD_LIBPATH($OCI8_DIR/lib, OCI8_SHARED_LIBADD)
+ AC_DEFINE(HAVE_OCI8_ATTR_STATEMENT,1,[ ])
+
+ dnl These functions are only available in version >= 9.2
+ PHP_CHECK_LIBRARY(clntsh, OCIEnvNlsCreate,
+ [
+ PHP_CHECK_LIBRARY(clntsh, OCINlsCharSetNameToId,
+ [
+ AC_DEFINE(HAVE_OCI_9_2,1,[ ])
+ OCI8_VERSION=10.1
+ ], [], [
+ -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD
+ ])
+ ], [], [
+ -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD
+ ])
+ ;;
+
*)
AC_MSG_ERROR(Unsupported Oracle version!)
;;
If readers need to manually apply this patch, run ./buildconf before
running ./configure and make.
See also http://bugs.php.net/27093
To install Oracle's OCI header and library files from the Oracle 10g
Client CD, run the installer and choose the "Administrator" option.
--
Edit bug report at http://bugs.php.net/?id=27117&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27117&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27117&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27117&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27117&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27117&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27117&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27117&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27117&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27117&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27117&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27117&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27117&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27117&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27117&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27117&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27117&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27117&r=float