summaryrefslogtreecommitdiff
path: root/ext/oci8/oci8.c
diff options
context:
space:
mode:
authorChristopher Jones <sixd@php.net>2011-10-31 20:48:25 +0000
committerChristopher Jones <sixd@php.net>2011-10-31 20:48:25 +0000
commit677c7c974b35075c063784d6e2b2ad76887c3222 (patch)
tree221f3763949d394daacc4917146c7be6425fdaa1 /ext/oci8/oci8.c
parent89a4d34646f0123a3f6b9852cecde130ff7bfbaa (diff)
downloadphp-git-677c7c974b35075c063784d6e2b2ad76887c3222.tar.gz
OCI8: improve initialization error message (See bug 60154)
Diffstat (limited to 'ext/oci8/oci8.c')
-rw-r--r--ext/oci8/oci8.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c
index 88f95e8659..275483ee2f 100644
--- a/ext/oci8/oci8.c
+++ b/ext/oci8/oci8.c
@@ -79,11 +79,14 @@ static PHP_GSHUTDOWN_FUNCTION(oci);
#endif
/* For a user friendly message about environment setup */
-/* TODO: add cases for SHLIB_PATH, LIBPATH, LD_LIBRARY_PATH_64 etc */
#if defined(PHP_WIN32)
#define PHP_OCI8_LIB_PATH_MSG "PATH"
#elif defined(__APPLE__)
#define PHP_OCI8_LIB_PATH_MSG "DYLD_LIBRARY_PATH"
+#elif defined(_AIX)
+#define PHP_OCI8_LIB_PATH_MSG "LIBPATH"
+#elif defined(__hpux)
+#define PHP_OCI8_LIB_PATH_MSG "SHLIB_PATH"
#else
#define PHP_OCI8_LIB_PATH_MSG "LD_LIBRARY_PATH"
#endif