mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
Improve error messages
This commit is contained in:
@@ -705,13 +705,13 @@ static void php_session_initialize(TSRMLS_D)
|
||||
int vallen;
|
||||
|
||||
if (!PS(mod)) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_ERROR, "Failed to initialize session module.");
|
||||
php_error_docref(NULL TSRMLS_CC, E_ERROR, "No storage module chosen - failed to initialize session.");
|
||||
return;
|
||||
}
|
||||
|
||||
/* Open session handler first */
|
||||
if (PS(mod)->s_open(&PS(mod_data), PS(save_path), PS(session_name) TSRMLS_CC) == FAILURE) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_ERROR, "Failed to initialize session module");
|
||||
php_error_docref(NULL TSRMLS_CC, E_ERROR, "Failed to initialize storage module: %s (path: %s)", PS(mod)->s_name, PS(save_path));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user