]> source.dussan.org Git - nextcloud-server.git/commitdiff
redefine reopen() in class \OC\Session\Internal to avoid accidental calls in producti...
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 18 Mar 2014 10:44:22 +0000 (11:44 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 18 Mar 2014 10:44:22 +0000 (11:44 +0100)
lib/private/session/internal.php

index 9d3b9cb81ba0b3278f9e18420b3fc56d187d96f3..42ec9606dc9defacd5c6482097dccbe05c925c2c 100644 (file)
@@ -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.');
+    }
 }