2008-04-23 00:05:42 +08:00
|
|
|
--TEST--
|
|
|
|
Test session_write_close() function : variation
|
|
|
|
--SKIPIF--
|
|
|
|
<?php include('skipif.inc'); ?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
|
|
|
ob_start();
|
|
|
|
|
2018-09-17 01:16:42 +08:00
|
|
|
/*
|
2008-04-23 00:05:42 +08:00
|
|
|
* Prototype : bool session_write_close(void)
|
|
|
|
* Description : Write session data and end session
|
2018-10-15 00:03:31 +08:00
|
|
|
* Source code : ext/session/session.c
|
2008-04-23 00:05:42 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
echo "*** Testing session_write_close() : variation ***\n";
|
|
|
|
|
|
|
|
var_dump(session_start());
|
|
|
|
var_dump(session_write_close());
|
|
|
|
var_dump(session_write_close());
|
|
|
|
var_dump(session_write_close());
|
|
|
|
var_dump(session_write_close());
|
|
|
|
var_dump(session_write_close());
|
|
|
|
var_dump(session_start());
|
|
|
|
var_dump(session_destroy());
|
|
|
|
|
|
|
|
echo "Done";
|
|
|
|
ob_end_flush();
|
|
|
|
?>
|
2018-02-19 16:59:41 +08:00
|
|
|
--EXPECT--
|
2008-04-23 00:05:42 +08:00
|
|
|
*** Testing session_write_close() : variation ***
|
|
|
|
bool(true)
|
2016-11-17 10:09:07 +08:00
|
|
|
bool(true)
|
|
|
|
bool(false)
|
|
|
|
bool(false)
|
|
|
|
bool(false)
|
|
|
|
bool(false)
|
2008-04-23 00:05:42 +08:00
|
|
|
bool(true)
|
|
|
|
bool(true)
|
|
|
|
Done
|