diff --git a/testdata/worker-cross-request-output.php b/testdata/worker-cross-request-output.php index 21383ffada..a24524588f 100644 --- a/testdata/worker-cross-request-output.php +++ b/testdata/worker-cross-request-output.php @@ -42,7 +42,7 @@ public function __destruct() } } -final class TenantSessionHandler implements SessionHandlerInterface +final class TenantSessionHandler implements SessionHandlerInterface, SessionIdInterface, SessionUpdateTimestampHandlerInterface { public function open(string $path, string $name): bool { @@ -75,6 +75,21 @@ public function gc(int $max_lifetime): int { return 0; } + + public function create_sid(): string + { + return bin2hex(random_bytes(16)); + } + + public function validateId(string $id): bool + { + return true; + } + + public function updateTimestamp(string $id, string $data): bool + { + return true; + } } $between = null;