From: Antony Dovgal Date: Tue, 1 Aug 2006 12:08:10 +0000 (+0000) Subject: improve error message on Win32 X-Git-Tag: RELEASE_1_0_0RC1~2152 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c2449923c77ec87be22fcf7708657def9e5d886;p=php improve error message on Win32 --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 623209773d..097234738b 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -1189,7 +1189,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