From 1bf915ca2dca23923753c29156ca5531638f003b Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 1 Aug 2006 12:08:25 +0000 Subject: [PATCH] improve error message on Win32 --- ext/oci8/oci8.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index ba483f1189..1b35892898 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -1174,7 +1174,11 @@ open: if (OCI_G(errcode) != OCI_SUCCESS) { #ifdef HAVE_OCI_INSTANT_CLIENT +# ifdef PHP_WIN32 + php_error_docref(NULL TSRMLS_CC, E_WARNING, PHP_OCI_INIT_FUNC_NAME "() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries"); +# else php_error_docref(NULL TSRMLS_CC, E_WARNING, PHP_OCI_INIT_FUNC_NAME "() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries"); +# endif #else php_error_docref(NULL TSRMLS_CC, E_WARNING, PHP_OCI_INIT_FUNC_NAME "() failed. There is something wrong with your system - please check that ORACLE_HOME is set and points to the right directory"); #endif -- 2.50.1