Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-03-18 14:44:22 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2014-03-18 14:44:22 +0400
commiteffea790c7200d1a9e5605407dcefc8ab71146b8 (patch)
treea2aec16544e0d31290ca38b02ecf507a870f42b3 /lib
parent153eadd7534bba545c67d87e5391be4f4832ea18 (diff)
redefine reopen() in class \OC\Session\Internal to avoid accidental calls in productive code
Diffstat (limited to 'lib')
-rw-r--r--lib/private/session/internal.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/session/internal.php b/lib/private/session/internal.php
index 9d3b9cb81ba..42ec9606dc9 100644
--- a/lib/private/session/internal.php
+++ b/lib/private/session/internal.php
@@ -54,4 +54,7 @@ class Internal extends Memory {
parent::close();
}
+ public function reopen() {
+ throw new \Exception('The session cannot be reopened - reopen() is ony to be used in unit testing.');
+ }
}