Index: ext/oci8/config.m4 =================================================================== RCS file: /repository/php-src/ext/oci8/config.m4,v retrieving revision 1.55.2.3 diff -u -p -d -r1.55.2.3 config.m4 --- ext/oci8/config.m4 5 Apr 2006 14:06:00 -0000 1.55.2.3 +++ ext/oci8/config.m4 3 May 2006 07:05:16 -0000 @@ -174,6 +174,7 @@ if test "$PHP_OCI8" != "no" && test "$PH ], [], [ -L$OCI8_DIR/$OCI8_LIB_DIR $OCI8_SHARED_LIBADD ]) + PHP_OCI_IF_DEFINED(OCI_ATTR_SERVER_STATUS, [AC_DEFINE(HAVE_OCI_ATTR_SERVER_STATUS,1,[ ])], $OCI8_INCLUDES) ;; 8.1) @@ -198,6 +199,7 @@ if test "$PHP_OCI8" != "no" && test "$PH dnl OCI_ATTR_STATEMENT is not available in all 8.1.x versions dnl PHP_OCI_IF_DEFINED(OCI_ATTR_STATEMENT, [AC_DEFINE(HAVE_OCI8_ATTR_STATEMENT,1,[ ])], $OCI8_INCLUDES) + PHP_OCI_IF_DEFINED(OCI_ATTR_SERVER_STATUS, [AC_DEFINE(HAVE_OCI_ATTR_SERVER_STATUS,1,[ ])], $OCI8_INCLUDES) ;; 9.0) Index: ext/oci8/oci8.c =================================================================== RCS file: /repository/php-src/ext/oci8/oci8.c,v retrieving revision 1.269.2.16 diff -u -p -d -r1.269.2.16 oci8.c --- ext/oci8/oci8.c 12 Apr 2006 19:21:35 -0000 1.269.2.16 +++ ext/oci8/oci8.c 3 May 2006 07:05:17 -0000 @@ -1378,6 +1378,9 @@ static int php_oci_connection_ping(php_o Check connection status (pre-ping check) */ static int php_oci_connection_status(php_oci_connection *connection TSRMLS_DC) { +#if !defined(HAVE_OCI_ATTR_SERVER_STATUS) + return 1; +#else ub4 ss = 0; /* get OCI_ATTR_SERVER_STATUS */ @@ -1390,6 +1393,7 @@ static int php_oci_connection_status(php /* ignore errors here, just return failure * php_oci_error(OCI_G(err), OCI_G(errcode) TSRMLS_CC); */ return 0; +#endif } /* }}} */