summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-07-22 20:46:28 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2020-07-22 20:46:28 +0200
commit0a59a719476ed916da144a6c2743976c217660c4 (patch)
tree57cd40c59c65f28b0f2c84ebbf0a7a3578a371f1
parentc1a80e075afd92b269c39f54301510e4d7049a8c (diff)
parent6b99a8be4d3adef95eece9e84395966694bb1cec (diff)
downloadphp-git-0a59a719476ed916da144a6c2743976c217660c4.tar.gz
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix brittle test
-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 303a5f8939..a45df64362 100644
--- a/ext/session/tests/session_module_name_variation4.phpt
+++ b/ext/session/tests/session_module_name_variation4.phpt
@@ -29,10 +29,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);
@@ -51,14 +53,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) {
}