]> granicus.if.org Git - php/commitdiff
MFH: don't allow $PHP_OCI8 to be empty if OCI8 is enabled
authorAntony Dovgal <tony2001@php.net>
Fri, 13 Jul 2007 09:24:30 +0000 (09:24 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 13 Jul 2007 09:24:30 +0000 (09:24 +0000)
fixes bug #41988

ext/oci8/config.m4

index 4c6a515c6a461c12f2ad2a9accac50bc81f30eb5..e0e1adba005fac8fd56c6c324a25a7c8a7ae97bf 100644 (file)
@@ -138,12 +138,18 @@ if test "`echo $PHP_OCI8 | cut -d, -f2`" = "instantclient"; then
     if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then
         PHP_OCI8_INSTANT_CLIENT="yes"
     fi
+    if test -z "$PHP_OCI8"; then
+        PHP_OCI8=yes
+    fi
 elif test "`echo $PHP_OCI8 | cut -d, -f1`" = "instantclient"; then
     PHP_OCI8_INSTANT_CLIENT="`echo $PHP_OCI8 | cut -d, -f2`"
     PHP_OCI8="`echo $PHP_OCI8 | cut -d, -f3,4`"
     if test "$PHP_OCI8_INSTANT_CLIENT" = ""; then
         PHP_OCI8_INSTANT_CLIENT="yes"
     fi
+    if test -z "$PHP_OCI8"; then
+        PHP_OCI8=yes
+    fi
 fi
 
 if test "$PHP_OCI8" != "no" && test "$PHP_OCI8_INSTANT_CLIENT" = "no"; then