php-src/ext/session/tests/session_write_close_variation1.phpt

41 lines
774 B
Plaintext
Raw Normal View History

--TEST--
Test session_write_close() function : variation
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php
ob_start();
2018-09-17 01:16: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
*/
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();
?>
--EXPECT--
*** Testing session_write_close() : variation ***
bool(true)
bool(true)
bool(false)
bool(false)
bool(false)
bool(false)
bool(true)
bool(true)
Done