1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 10:12:18 +01:00
Files
archived-php-src/ext/session/tests/session_start_variation4.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

38 lines
565 B
PHP

--TEST--
Test session_start() function : variation
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php
ob_start();
/*
* Prototype : bool session_start(void)
* Description : Initialize session data
* Source code : ext/session/session.c
*/
echo "*** Testing session_start() : variation ***\n";
$_SESSION['blah'] = 'foo';
var_dump($_SESSION);
session_start();
var_dump($_SESSION);
session_destroy();
echo "Done";
ob_end_flush();
?>
--EXPECT--
*** Testing session_start() : variation ***
array(1) {
["blah"]=>
string(3) "foo"
}
array(0) {
}
Done