summaryrefslogtreecommitdiff
path: root/ext/session/tests
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-07-22 20:47:16 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-07-22 20:47:16 +0200
commitdd30a3d8cefba66a2282e312b06d1448a218a833 (patch)
tree621c11716b764c577899e19dfaa3c9efa60a8175 /ext/session/tests
parentf1436c4832bc5f76acded56a193e91170464c923 (diff)
parent0a59a719476ed916da144a6c2743976c217660c4 (diff)
downloadphp-git-dd30a3d8cefba66a2282e312b06d1448a218a833.tar.gz
Merge branch 'PHP-7.4'
* PHP-7.4: Fix brittle test
Diffstat (limited to 'ext/session/tests')
-rw-r--r--ext/session/tests/session_module_name_variation4.phpt13
1 files changed, 4 insertions, 9 deletions
diff --git a/ext/session/tests/session_module_name_variation4.phpt b/ext/session/tests/session_module_name_variation4.phpt
index 2b12bce70a..9b845151a8 100644
--- a/ext/session/tests/session_module_name_variation4.phpt
+++ b/ext/session/tests/session_module_name_variation4.phpt
@@ -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) {
}