1--TEST-- 2Test session_module_name() function : variation 3--EXTENSIONS-- 4session 5--SKIPIF-- 6<?php include('skipif.inc'); ?> 7--FILE-- 8<?php 9 10ob_start(); 11 12echo "*** Testing session_module_name() : variation ***\n"; 13 14class MySessionHandler implements SessionHandlerInterface { 15 public function open($save_path, $session_name): bool { return false; } 16 public function close(): bool { return false; } 17 public function read($id): string|false { return false; } 18 public function write($id, $session_data): bool { return false; } 19 public function destroy($id): bool { return false; } 20 public function gc($maxlifetime): int { return 1; } 21} 22 23var_dump(session_module_name("files")); 24session_set_save_handler(new MySessionHandler()); 25var_dump(session_module_name()); 26 27ob_end_flush(); 28?> 29--EXPECTF-- 30*** Testing session_module_name() : variation *** 31string(%d) "%s" 32string(4) "user" 33