diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-18 11:44:22 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-03-18 11:44:22 +0100 |
commit | effea790c7200d1a9e5605407dcefc8ab71146b8 (patch) | |
tree | a2aec16544e0d31290ca38b02ecf507a870f42b3 /lib | |
parent | 153eadd7534bba545c67d87e5391be4f4832ea18 (diff) | |
download | nextcloud-server-effea790c7200d1a9e5605407dcefc8ab71146b8.tar.gz nextcloud-server-effea790c7200d1a9e5605407dcefc8ab71146b8.zip |
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.php | 3 |
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.'); + } } |