From b38edbd52f46e0d967b4a2dca88986f19e724a77 Mon Sep 17 00:00:00 2001 From: jengo Date: Wed, 6 Dec 2000 09:31:31 +0000 Subject: [PATCH] Setup wasnt detecting postgresql or mysql on php-3.0.16 --- setup/createheader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup/createheader.php b/setup/createheader.php index 50d509416e..c7ce25acba 100644 --- a/setup/createheader.php +++ b/setup/createheader.php @@ -43,19 +43,19 @@ // this dont work with PHP 3.0.10 and lower ! $supported_db = array(); - if(extension_loaded("mysql")) { + if (extension_loaded("mysql") || function_exists("mysql_connect")) { echo "You appear to have MySQL support enabled
\n"; $supported_db[] = "mysql"; } else { echo "No MySQL support found. Disabling
\n"; } - if(extension_loaded("pgsql")) { + if (extension_loaded("pgsql") || function_exists("pg_connect")) { echo "You appear to have Postgres-DB support enabled
\n"; $supported_db[] = "pgsql"; } else { echo "No Postgres-DB support found. Disabling
\n"; } - if(extension_loaded("oci8")) { + if (extension_loaded("oci8")) { echo "You appear to have Oracle V8 (OCI) support enabled
\n"; $supported_db[] = "oracle"; } else {