]> granicus.if.org Git - php/commitdiff
improve error message on Win32
authorAntony Dovgal <tony2001@php.net>
Tue, 1 Aug 2006 12:08:25 +0000 (12:08 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 1 Aug 2006 12:08:25 +0000 (12:08 +0000)
ext/oci8/oci8.c

index ba483f1189085503f797c47ed62bbee41a42e4be..1b358928982783cfcbba79229335a7f284d8f387 100644 (file)
@@ -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