From: Sascha Schumann Date: Mon, 10 Jul 2000 08:35:03 +0000 (+0000) Subject: Also output the name of the save_handler when reporting a failed write X-Git-Tag: PRE_FILE_COMPILE_API_CHANGE~332 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb0cbbd2d979dd425d5c0653c76dead84df6927e;p=php Also output the name of the save_handler when reporting a failed write attempt. --- diff --git a/ext/session/session.c b/ext/session/session.c index 2861feb58c..24bad6fad9 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -507,10 +507,13 @@ static void _php_session_save_current_state(PSLS_D) ret = PS(mod)->write(&PS(mod_data), PS(id), "", 0); if (ret == FAILURE) - php_error(E_WARNING, "Failed to write session data. Please check that " - "the current setting of session.save_path is correct (%s)", + php_error(E_WARNING, "Failed to write session data (%s). Please " + "verify that the current setting of session.save_path " + "is correct (%s)", + PS(mod)->name, PS(save_path)); + PS(mod)->close(&PS(mod_data)); }