summaryrefslogtreecommitdiff
path: root/ext/session/tests/bug73100.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/session/tests/bug73100.phpt')
-rw-r--r--ext/session/tests/bug73100.phpt10
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/session/tests/bug73100.phpt b/ext/session/tests/bug73100.phpt
index a59e9f41cc..a9c140aa88 100644
--- a/ext/session/tests/bug73100.phpt
+++ b/ext/session/tests/bug73100.phpt
@@ -14,7 +14,11 @@ var_dump(session_start());
session_module_name("user");
var_dump(session_destroy());
-session_module_name("user");
+try {
+ session_module_name("user");
+} catch (\ValueError $e) {
+ echo $e->getMessage() . \PHP_EOL;
+}
?>
===DONE===
--EXPECTF--
@@ -22,5 +26,5 @@ bool(true)
Warning: session_module_name(): Session save handler module cannot be changed when a session is active in %s on line %d
bool(true)
-
-Recoverable fatal error: session_module_name(): Session save handler "user" cannot be set by ini_set() or session_module_name() in %s on line %d
+session_module_name(): Argument #1 ($module) cannot be "user"
+===DONE===