]> granicus.if.org Git - php/commitdiff
Check also that the file isn't empty.
authorfoobar <sniper@php.net>
Sun, 29 Oct 2000 04:36:33 +0000 (04:36 +0000)
committerfoobar <sniper@php.net>
Sun, 29 Oct 2000 04:36:33 +0000 (04:36 +0000)
ext/oci8/config.m4
ext/oracle/config.m4

index 1fc55fafa093ba900b6c8bad9cdb69dc4046a126..820a733ae3dd42ab3dfb77bbc20a09ebc13f56bf 100644 (file)
@@ -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
index 58d12695c1ef60d845179380c3b37eed68892787..6a251a8c73f8a34b111253c440dbe1f12bcb5ec7 100644 (file)
@@ -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