1--TEST--
2GH-9584: PS(mod_user_class_name) must not leak into next request
3--EXTENSIONS--
4session
5--FILE--
6<?php
7
8class MySessionHandler extends SessionHandler implements SessionUpdateTimestampHandlerInterface
9{
10    public function open($path, $sessname): bool {
11        return true;
12    }
13
14    public function close(): bool {
15        return true;
16    }
17
18    public function read($sessid): string|false {
19        return 'foo|s:3:"foo";';
20    }
21
22    public function write($sessid, $sessdata): bool {
23        return false;
24    }
25
26    public function destroy($sessid): bool {
27        return true;
28    }
29
30    public function gc($maxlifetime): int|false {
31        return true;
32    }
33
34    public function create_sid(): string {
35        return sha1(random_bytes(32));
36    }
37
38    public function validateId($sid): bool {
39        return true;
40    }
41
42    public function updateTimestamp($sessid, $sessdata): bool {
43        return false;
44    }
45}
46
47$handler = new MySessionHandler();
48session_set_save_handler($handler);
49
50?>
51===DONE===
52--EXPECT--
53===DONE===
54