mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
Merge branch 'PHP-7.4'
* PHP-7.4: Fix brittle test
This commit is contained in:
commit
dd30a3d8ce
@ -23,10 +23,12 @@ $_SESSION["Blah"] = "Hello World!";
|
||||
$_SESSION["Foo"] = FALSE;
|
||||
$_SESSION["Guff"] = 1234567890;
|
||||
var_dump($_SESSION);
|
||||
$oldsession = $_SESSION;
|
||||
|
||||
var_dump(session_write_close());
|
||||
session_start();
|
||||
var_dump($_SESSION);
|
||||
// the session may have been GC'd or not; we accept either outcome
|
||||
var_dump($_SESSION === $oldsession || $_SESSION === []);
|
||||
var_dump(session_destroy());
|
||||
session_start();
|
||||
var_dump($_SESSION);
|
||||
@ -45,14 +47,7 @@ array(3) {
|
||||
int(1234567890)
|
||||
}
|
||||
bool(true)
|
||||
array(3) {
|
||||
["Blah"]=>
|
||||
string(12) "Hello World!"
|
||||
["Foo"]=>
|
||||
bool(false)
|
||||
["Guff"]=>
|
||||
int(1234567890)
|
||||
}
|
||||
bool(true)
|
||||
bool(true)
|
||||
array(0) {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user