mirror of
https://github.com/php/php-src.git
synced 2025-01-09 20:44:33 +08:00
43 lines
831 B
Plaintext
43 lines
831 B
Plaintext
|
--TEST--
|
||
|
Test session_save_path() function : variation
|
||
|
--INI--
|
||
|
session.gc_probability=0
|
||
|
--SKIPIF--
|
||
|
<?php include('skipif.inc'); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
ob_start();
|
||
|
|
||
|
/*
|
||
|
* Prototype : string session_save_path([string $path])
|
||
|
* Description : Get and/or set the current session save path
|
||
|
* Source code : ext/session/session.c
|
||
|
*/
|
||
|
|
||
|
echo "*** Testing session_save_path() : variation ***\n";
|
||
|
|
||
|
$directory = dirname(__FILE__);
|
||
|
var_dump(session_save_path());
|
||
|
var_dump(session_start());
|
||
|
var_dump(session_save_path());
|
||
|
var_dump(session_save_path($directory));
|
||
|
var_dump(session_save_path());
|
||
|
var_dump(session_destroy());
|
||
|
var_dump(session_save_path());
|
||
|
|
||
|
echo "Done";
|
||
|
ob_end_flush();
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
*** Testing session_save_path() : variation ***
|
||
|
string(0) ""
|
||
|
bool(true)
|
||
|
string(0) ""
|
||
|
string(0) ""
|
||
|
string(%d) "%s"
|
||
|
bool(true)
|
||
|
string(%d) "%s"
|
||
|
Done
|
||
|
|