[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/oci8/config.m4 branches/PHP_5_3/ext/oci8/package.xml branches/PHP_5_3/ext/oci8/php_oci8.h trunk/ext/oci8/config.m4 trunk/ext/oci8/package.xml trunk/ex

2010-06-25 Thread Christopher Jones
sixd Fri, 25 Jun 2010 21:18:09 +

Revision: http://svn.php.net/viewvc?view=revision&revision=300753

Log:
Remove hard coded lib extension.  Prepare for OCI8 1.4.2 release

Changed paths:
U   php/php-src/branches/PHP_5_3/ext/oci8/config.m4
U   php/php-src/branches/PHP_5_3/ext/oci8/package.xml
U   php/php-src/branches/PHP_5_3/ext/oci8/php_oci8.h
U   php/php-src/trunk/ext/oci8/config.m4
U   php/php-src/trunk/ext/oci8/package.xml
U   php/php-src/trunk/ext/oci8/php_oci8.h

Modified: php/php-src/branches/PHP_5_3/ext/oci8/config.m4
===
--- php/php-src/branches/PHP_5_3/ext/oci8/config.m4	2010-06-25 21:09:13 UTC (rev 300752)
+++ php/php-src/branches/PHP_5_3/ext/oci8/config.m4	2010-06-25 21:18:09 UTC (rev 300753)
@@ -37,7 +37,7 @@
 OCI8_LIB_DIR=$PHP_OCI8_OH_LIBDIR
   else
 dnl This isn't an ORACLE_HOME.  Try heuristic examination of the dir to help the user
-if test -f "$OCI8_DIR/libociei.so"; then
+if test -f "$OCI8_DIR/libociei.$SHLIB_SUFFIX_NAME"; then
   AC_MSG_ERROR([Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}])
 else
   AC_MSG_ERROR([Oracle library directory not found in ${OCI8_DIR}])

Modified: php/php-src/branches/PHP_5_3/ext/oci8/package.xml
===
--- php/php-src/branches/PHP_5_3/ext/oci8/package.xml	2010-06-25 21:09:13 UTC (rev 300752)
+++ php/php-src/branches/PHP_5_3/ext/oci8/package.xml	2010-06-25 21:18:09 UTC (rev 300753)
@@ -33,7 +33,7 @@
   no
  

- 2010-03-30
+ 2010-06-25
  15:00:00

  
@@ -41,14 +41,15 @@
   1.4.2
  
  
-  devel
-  devel
+  stable
+  stable
  
  http://www.php.net/license";>PHP
  
-Fixed Bug #51691 (Unnecessary realloc causes crashes in PHP trunk tests with interned strings)
+Fixed bug #51691 (Unnecessary realloc causes crashes in PHP trunk tests with interned strings)
 Fixed bug #51291 (oci_error doesn't report last error when called two times)
-Fixed Bug #51577 (Uninitialized memory reference with oci_bind_array_by_name)
+Fixed bug #51577 (Uninitialized memory reference with oci_bind_array_by_name)
+Fixed bug #52186 (phpinfo() shows 10.1 or 11.1 when installed with ORACLE_HOME 10.2 or 11.2)
  
  
   
@@ -89,19 +90,8 @@
 
 
 
-
-
-
-
 
 
-
-
-
-
-
-
-
 
 
 
@@ -204,22 +194,17 @@
 
 
 
-
 
-
 
 
 
-
 
 
 
 
 
-
 
 
-
 
 
 
@@ -241,7 +226,6 @@
 
 
 
-
 
 
 
@@ -256,7 +240,6 @@
 
 
 
-
 
 
 
@@ -267,15 +250,12 @@
 
 
 
-
 
 
 
 
-
 
 
-
 
 
 

Modified: php/php-src/branches/PHP_5_3/ext/oci8/php_oci8.h
===
--- php/php-src/branches/PHP_5_3/ext/oci8/php_oci8.h	2010-06-25 21:09:13 UTC (rev 300752)
+++ php/php-src/branches/PHP_5_3/ext/oci8/php_oci8.h	2010-06-25 21:18:09 UTC (rev 300753)
@@ -46,7 +46,7 @@
  */
 #undef PHP_OCI8_VERSION
 #endif
-#define PHP_OCI8_VERSION "1.4.2-development"
+#define PHP_OCI8_VERSION "1.4.2"

 extern zend_module_entry oci8_module_entry;
 #define phpext_oci8_ptr &oci8_module_entry

Modified: php/php-src/trunk/ext/oci8/config.m4
===
--- php/php-src/trunk/ext/oci8/config.m4	2010-06-25 21:09:13 UTC (rev 300752)
+++ php/php-src/trunk/ext/oci8/config.m4	2010-06-25 21:18:09 UTC (rev 300753)
@@ -37,7 +37,7 @@
 OCI8_LIB_DIR=$PHP_OCI8_OH_LIBDIR
   else
 dnl This isn't an ORACLE_HOME.  Try heuristic examination of the dir to help the user
-if test -f "$OCI8_DIR/libociei.so"; then
+if test -f "$OCI8_DIR/libociei.$SHLIB_SUFFIX_NAME"; then
   AC_MSG_ERROR([Expected an ORACLE_HOME top level directory but ${OCI8_DIR} appears to be an Instant Client directory. Try --with-oci8=instantclient,${OCI8_DIR}])
 else
   AC_MSG_ERROR([Oracle library directory not found in ${OCI8_DIR}])

Modified: php/php-src/trunk/ext/oci8/package.xml
===
--- php/php-src/trunk/ext/oci8/package.xml	2010-06-25 21:09:13 UTC (rev 300752)
+++ php/php-src/trunk/ext/oci8/package.xml	2010-06-25 21:18:09 UTC (rev 300753)
@@ -33,7 +33,7 @@
   no
  

- 2010-02-11
+ 2010-06-25
  15:00:00

  
@@ -41,12 +41,15 @@
   1.4.2
  
  
-  development
-  development
+  stable
+  stable
  
  http://www.php.net/license";>PHP
  
+Fixed bug #51691 (Unnecessary realloc causes crashes in PHP trunk tests with interned strings)
 Fixed bug #51291 (oci_error doesn't report last error when called two times)
+Fixed bug #51577 (Uninitialized memory reference with oci_bind_array_by_name)
+Fixed bu

[PHP-CVS] svn: /php/php-src/ branches/PHP_5_3/ext/oci8/oci8.c trunk/ext/oci8/oci8.c

2010-06-25 Thread Christopher Jones
sixd Fri, 25 Jun 2010 21:09:13 +

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)

Bug: http://bugs.php.net/52186 (Assigned) phpinfo() shows 10.1 or 11.1 when 
installed with ORACLE_HOME 10.2 or 11.2
  
Changed paths:
U   php/php-src/branches/PHP_5_3/ext/oci8/oci8.c
U   php/php-src/trunk/ext/oci8/oci8.c

Modified: php/php-src/branches/PHP_5_3/ext/oci8/oci8.c
===
--- php/php-src/branches/PHP_5_3/ext/oci8/oci8.c2010-06-25 18:23:54 UTC 
(rev 300751)
+++ php/php-src/branches/PHP_5_3/ext/oci8/oci8.c2010-06-25 21:09:13 UTC 
(rev 300752)
@@ -1300,19 +1300,26 @@
snprintf(buf, sizeof(buf), "%ld", OCI_G(num_links));
php_info_print_table_row(2, "Active Connections", buf);

+#ifdefined(OCI_MAJOR_VERSION) && defined(OCI_MINOR_VERSION)
+   snprintf(buf, sizeof(buf), "%d.%d", OCI_MAJOR_VERSION, 
OCI_MINOR_VERSION);
+#elif defined(PHP_OCI8_ORACLE_VERSION)
+   snprintf(buf, sizeof(buf), "%s", PHP_OCI8_ORACLE_VERSION);
+#else
+   snprintf(buf, sizeof(buf), "Unknown");
+#endif
+#if defined(HAVE_OCI_INSTANT_CLIENT)
+   php_info_print_table_row(2, "Oracle Instant Client Version", buf);
+#else
+   php_info_print_table_row(2, "Oracle Version", buf);
+#endif
+
 #if !defined(PHP_WIN32) && !defined(HAVE_OCI_INSTANT_CLIENT)
-#ifdef PHP_OCI8_ORACLE_VERSION
-   php_info_print_table_row(2, "Oracle Version", PHP_OCI8_ORACLE_VERSION);
-#endif
-#ifdef PHP_OCI8_DEF_DIR
+#if defined(PHP_OCI8_DEF_DIR)
php_info_print_table_row(2, "Compile-time ORACLE_HOME", 
PHP_OCI8_DEF_DIR);
 #endif
-#ifdef PHP_OCI8_DEF_SHARED_LIBADD
+#if defined(PHP_OCI8_DEF_SHARED_LIBADD)
php_info_print_table_row(2, "Libraries Used", 
PHP_OCI8_DEF_SHARED_LIBADD);
 #endif
-#elif defined(HAVE_OCI_INSTANT_CLIENT) && defined(OCI_MAJOR_VERSION) && 
defined(OCI_MINOR_VERSION)
-   snprintf(buf, sizeof(buf), "%d.%d", OCI_MAJOR_VERSION, 
OCI_MINOR_VERSION);
-   php_info_print_table_row(2, "Oracle Instant Client Version", buf);
 #endif

php_info_print_table_row(2, "Temporary Lob support", "enabled");

Modified: php/php-src/trunk/ext/oci8/oci8.c
===
--- php/php-src/trunk/ext/oci8/oci8.c   2010-06-25 18:23:54 UTC (rev 300751)
+++ php/php-src/trunk/ext/oci8/oci8.c   2010-06-25 21:09:13 UTC (rev 300752)
@@ -1300,19 +1300,26 @@
snprintf(buf, sizeof(buf), "%ld", OCI_G(num_links));
php_info_print_table_row(2, "Active Connections", buf);

+#ifdefined(OCI_MAJOR_VERSION) && defined(OCI_MINOR_VERSION)
+   snprintf(buf, sizeof(buf), "%d.%d", OCI_MAJOR_VERSION, 
OCI_MINOR_VERSION);
+#elif defined(PHP_OCI8_ORACLE_VERSION)
+   snprintf(buf, sizeof(buf), "%s", PHP_OCI8_ORACLE_VERSION);
+#else
+   snprintf(buf, sizeof(buf), "Unknown");
+#endif
+#if defined(HAVE_OCI_INSTANT_CLIENT)
+   php_info_print_table_row(2, "Oracle Instant Client Version", buf);
+#else
+   php_info_print_table_row(2, "Oracle Version", buf);
+#endif
+
 #if !defined(PHP_WIN32) && !defined(HAVE_OCI_INSTANT_CLIENT)
-#ifdef PHP_OCI8_ORACLE_VERSION
-   php_info_print_table_row(2, "Oracle Version", PHP_OCI8_ORACLE_VERSION);
-#endif
-#ifdef PHP_OCI8_DEF_DIR
+#if defined(PHP_OCI8_DEF_DIR)
php_info_print_table_row(2, "Compile-time ORACLE_HOME", 
PHP_OCI8_DEF_DIR);
 #endif
-#ifdef PHP_OCI8_DEF_SHARED_LIBADD
+#if defined(PHP_OCI8_DEF_SHARED_LIBADD)
php_info_print_table_row(2, "Libraries Used", 
PHP_OCI8_DEF_SHARED_LIBADD);
 #endif
-#elif defined(HAVE_OCI_INSTANT_CLIENT) && defined(OCI_MAJOR_VERSION) && 
defined(OCI_MINOR_VERSION)
-   snprintf(buf, sizeof(buf), "%d.%d", OCI_MAJOR_VERSION, 
OCI_MINOR_VERSION);
-   php_info_print_table_row(2, "Oracle Instant Client Version", buf);
 #endif

php_info_print_table_row(2, "Temporary Lob support", "enabled");

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php