summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2000-10-29 04:36:33 +0000
committerfoobar <sniper@php.net>2000-10-29 04:36:33 +0000
commite76bafd6482ef329f5670aa621ad95f238d5df8a (patch)
treebd14dc4300672e1bf58ac30146f4d8aacea9980a
parent4a895b6919782d11b2f074cb2aaa549d4be32f49 (diff)
downloadphp-git-e76bafd6482ef329f5670aa621ad95f238d5df8a.tar.gz
Check also that the file isn't empty.
-rw-r--r--ext/oci8/config.m42
-rw-r--r--ext/oracle/config.m42
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/oci8/config.m4 b/ext/oci8/config.m4
index 1fc55fafa0..820a733ae3 100644
--- a/ext/oci8/config.m4
+++ b/ext/oci8/config.m4
@@ -2,7 +2,7 @@ dnl $Id$
AC_DEFUN(AC_OCI8_VERSION,[
AC_MSG_CHECKING([Oracle version])
- if test -f "$OCI8_DIR/orainst/unix.rgs"; then
+ 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.s?.8.0; then
diff --git a/ext/oracle/config.m4 b/ext/oracle/config.m4
index 58d12695c1..6a251a8c73 100644
--- a/ext/oracle/config.m4
+++ b/ext/oracle/config.m4
@@ -2,7 +2,7 @@ dnl $Id$
AC_DEFUN(AC_ORACLE_VERSION,[
AC_MSG_CHECKING([Oracle version])
- if test -f "$ORACLE_DIR/orainst/unix.rgs"; then
+ if test -s "$ORACLE_DIR/orainst/unix.rgs"; then
ORACLE_VERSION=`grep '"ocommon"' $ORACLE_DIR/orainst/unix.rgs | sed 's/[ ][ ]*/:/g' | cut -d: -f 6 | cut -c 2-4`
test -z "$ORACLE_VERSION" && ORACLE_VERSION=7.3
elif test -f $ORACLE_DIR/lib/libclntsh.s?.8.0; then