1--TEST-- 2Test session_save_path() function : variation 3--INI-- 4session.gc_probability=0 5session.save_path= 6session.name=PHPSESSID 7session.save_handler=files 8--SKIPIF-- 9<?php include('skipif.inc'); ?> 10--FILE-- 11<?php 12 13ob_start(); 14 15echo "*** Testing session_save_path() : variation ***\n"; 16 17$directory = __DIR__; 18var_dump(session_save_path()); 19var_dump(session_save_path($directory)); 20var_dump(session_save_path()); 21 22var_dump(session_start()); 23var_dump(session_save_path()); 24var_dump(session_save_path($directory)); 25var_dump(session_save_path()); 26var_dump(session_destroy()); 27 28var_dump(session_save_path()); 29 30echo "Done"; 31ob_end_flush(); 32?> 33--EXPECTF-- 34*** Testing session_save_path() : variation *** 35string(0) "" 36string(0) "" 37string(%d) "%stests" 38bool(true) 39string(%d) "%stests" 40 41Warning: session_save_path(): Session save path cannot be changed when a session is active in %s on line %d 42bool(false) 43string(%d) "%stests" 44bool(true) 45string(%d) "%stests" 46Done 47