]> granicus.if.org Git - php/commitdiff
-remove obsolete types
authorAntony Dovgal <tony2001@php.net>
Tue, 3 Feb 2004 14:21:09 +0000 (14:21 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 3 Feb 2004 14:21:09 +0000 (14:21 +0000)
-changes in config.m4 to make oci8 to compile with Oracle 10g
(thanks to cjbj at hotmail dot com for reporting both problems)

ext/oci8/config.m4
ext/oci8/oci8.c

index 240388aa4466837daa69ba72f3fbb7b9f3185025..adb60f587c01494a9a1d2934600d4edbf544c553 100644 (file)
@@ -23,6 +23,8 @@ AC_DEFUN(AC_OCI8_VERSION,[
   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
@@ -114,7 +116,13 @@ if test "$PHP_OCI8" != "no"; then
         -L$OCI8_DIR/lib $OCI8_SHARED_LIBADD
       ])
       ;;
-
+      
+    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,[ ])
+      AC_DEFINE(HAVE_OCI_9_2,1,[ ])
+      ;;
     *)
       AC_MSG_ERROR(Unsupported Oracle version!)
       ;;
index 4bbc0194befd92db1267998b98b7bb05fd3dc4d9..afe70092ef1dc27c9756e2344ce6eaf296ec80e7 100644 (file)
@@ -6319,7 +6319,7 @@ PHP_FUNCTION(oci_collection_append)
                                OCICollAppend(
                                        connection->session->pEnv, 
                                        connection->pError, 
-                                       (dword *)0, 
+                                       (dvoid *)0, 
                                        &null_ind, 
                                        coll->coll
                                )
@@ -6667,7 +6667,7 @@ PHP_FUNCTION(oci_collection_element_assign)
                                        connection->session->pEnv, 
                                        connection->pError, 
                                        ndx, 
-                                       (dword *)0, 
+                                       (dvoid *)0, 
                                        &null_ind, 
                                        coll->coll
                                )
@@ -6706,7 +6706,7 @@ PHP_FUNCTION(oci_collection_element_assign)
                                                connection->session->pEnv, 
                                                connection->pError, 
                                                ndx, 
-                                               (dword *)&dt, 
+                                               (dvoid *)&dt, 
                                                &new_ind, 
                                                coll->coll
                                        )
@@ -6740,7 +6740,7 @@ PHP_FUNCTION(oci_collection_element_assign)
                                                connection->session->pEnv, 
                                                connection->pError, 
                                                ndx, 
-                                               (dword *)ocistr, 
+                                               (dvoid *)ocistr, 
                                                &new_ind, 
                                                coll->coll
                                        )
@@ -6785,7 +6785,7 @@ PHP_FUNCTION(oci_collection_element_assign)
                                                connection->session->pEnv, 
                                                connection->pError, 
                                                ndx, 
-                                               (dword *)&num, 
+                                               (dvoid *)&num, 
                                                &new_ind, 
                                                coll->coll
                                        )