⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.23
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
local
/
src
/
memcache-8.0
/
tests
/
View File Name :
bug73539.phpt
--TEST-- memcache multi host save path function --SKIPIF-- <?php include 'connect.inc'; ?> --FILE-- <?php ob_start(); include 'connect.inc'; $session_save_path = "tcp://$host:$port,tcp://$host2:$port2"; ini_set('session.save_handler', 'memcache'); ini_set('memcache.session_save_path', $session_save_path); session_id('abcdef'); session_start(); $_SESSION['bof.test'] = 42; session_write_close(); $_SESSION = array(); function test() { session_name('SID_bof'); session_id('abcdef'); if (!session_start()) { var_dump('session_start failed'); exit(1); } var_dump($_SESSION); $_SESSION['bof.test'] = 42; session_write_close(); } ini_set('memcache.session_save_path', "tcp://$host:$port"); test(); ini_set('memcache.session_save_path', "tcp://$host2:$port2"); test(); ini_set('memcache.session_save_path', "tcp://$host:$port, tcp://$host2:$port2"); test(); echo "Done\n"; ob_flush(); ?> --EXPECTF-- array(1) { ["bof.test"]=> int(42) } array(1) { ["bof.test"]=> int(42) } array(1) { ["bof.test"]=> int(42) } Done