mirror of
https://github.com/php/php-src.git
synced 2024-10-01 23:06:11 +00:00
79b73d1218
These hopefully test a reasonable set of basic, error and variations for the twenty or so session functions. Note however that they do not test all the session configuration settings, nor do they test anything with register_globals enabled.
35 lines
692 B
PHP
35 lines
692 B
PHP
--TEST--
|
|
Test session_save_path() function : basic functionality
|
|
--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() : error functionality ***\n";
|
|
|
|
$directory = dirname(__FILE__);
|
|
var_dump(session_save_path());
|
|
var_dump(session_save_path($directory));
|
|
var_dump(session_save_path());
|
|
|
|
echo "Done";
|
|
ob_end_flush();
|
|
?>
|
|
--EXPECTF--
|
|
*** Testing session_save_path() : error functionality ***
|
|
string(0) ""
|
|
string(0) ""
|
|
string(%d) "%s"
|
|
Done
|
|
|