1--TEST-- 2Test session_save_path() function : variation 3--SKIPIF-- 4<?php include('skipif.inc'); ?> 5--INI-- 6session.save_handler=files 7session.gc_probability=0 8--FILE-- 9<?php 10 11ob_start(); 12 13/* 14 * Prototype : string session_save_path([string $path]) 15 * Description : Get and/or set the current session save path 16 * Source code : ext/session/session.c 17 */ 18 19echo "*** Testing session_save_path() : variation ***\n"; 20 21ini_set("session.save_path", "/blah"); 22var_dump(ini_get("session.save_path")); 23var_dump(session_start()); 24var_dump(ini_get("session.save_path")); 25var_dump(session_destroy()); 26var_dump(ini_get("session.save_path")); 27 28echo "Done"; 29ob_end_flush(); 30?> 31--EXPECTF-- 32*** Testing session_save_path() : variation *** 33string(5) "/blah" 34 35Warning: session_start(): open(%s, O_RDWR) failed: No such file or directory (2) in %s on line %d 36bool(true) 37string(5) "/blah" 38bool(true) 39string(5) "/blah" 40Done 41