1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 23:23:03 +02:00

Improve startup failure error messages

This commit is contained in:
Christopher Jones
2010-11-10 18:59:56 +00:00
parent b2b1a53031
commit eba1db126c

View File

@@ -1040,6 +1040,12 @@ static void php_oci_init_global_handles(TSRMLS_D)
#else
php_error_docref(NULL TSRMLS_CC, E_WARNING, "OCIEnvNlsCreate() failed. There is something wrong with your system - please check that ORACLE_HOME and " PHP_OCI8_LIB_PATH_MSG " are set and point to the right directories");
#endif
if (OCI_G(env)
&& OCIErrorGet(OCI_G(env), (ub4)1, NULL, &ora_error_code, tmp_buf, (ub4)PHP_OCI_ERRBUF_LEN, (ub4)OCI_HTYPE_ENV) == OCI_SUCCESS
&& *tmp_buf) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", tmp_buf);
}
OCI_G(env) = NULL;
OCI_G(err) = NULL;
return;