summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-08-01 12:08:25 +0000
committerAntony Dovgal <tony2001@php.net>2006-08-01 12:08:25 +0000
commit1bf915ca2dca23923753c29156ca5531638f003b (patch)
treeae18fc342d38c02f832892ea92c869b6b0625082
parentd14b107e5b99576ef93b2ce2088e1e5b9020955f (diff)
downloadphp-git-1bf915ca2dca23923753c29156ca5531638f003b.tar.gz
improve error message on Win32
-rw-r--r--ext/oci8/oci8.c4
1 files changed, 4 insertions, 0 deletions
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