Skip to content

Commit c4eb5f2

Browse files
committed
OCI8: improve initialization error message (See bug 60154)
1 parent 92ec40d commit c4eb5f2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/oci8/oci8.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,14 @@ static PHP_GSHUTDOWN_FUNCTION(oci);
7979
#endif
8080

8181
/* For a user friendly message about environment setup */
82-
/* TODO: add cases for SHLIB_PATH, LIBPATH, LD_LIBRARY_PATH_64 etc */
8382
#if defined(PHP_WIN32)
8483
#define PHP_OCI8_LIB_PATH_MSG "PATH"
8584
#elif defined(__APPLE__)
8685
#define PHP_OCI8_LIB_PATH_MSG "DYLD_LIBRARY_PATH"
86+
#elif defined(_AIX)
87+
#define PHP_OCI8_LIB_PATH_MSG "LIBPATH"
88+
#elif defined(__hpux)
89+
#define PHP_OCI8_LIB_PATH_MSG "SHLIB_PATH"
8790
#else
8891
#define PHP_OCI8_LIB_PATH_MSG "LD_LIBRARY_PATH"
8992
#endif

0 commit comments

Comments
 (0)