summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-09-12 19:51:47 +0200
committerVincent Petry <pvince81@owncloud.com>2014-09-12 19:51:47 +0200
commitda9f9ae9b3b77b34c6b54ab789f1efe94a3e2781 (patch)
treea3bf836b99d4af4093eaa676a69a90ec3eef2dac /apps/files_encryption
parentc119a9fd32206b823fe29b13e582dfd1016137a6 (diff)
downloadnextcloud-server-da9f9ae9b3b77b34c6b54ab789f1efe94a3e2781.tar.gz
nextcloud-server-da9f9ae9b3b77b34c6b54ab789f1efe94a3e2781.zip
Remove passing by reference to allow for proper GC
The garbage collector in PHP 5.3.10 does not properly release the file handle when calling fclose() due to the fact that it is passed by reference. This has the side-effect of preventing file locks to be released as well when the files_locking app is enabled. This fix removes the useless passing by reference and now the file handle and file lock are freed properly.
Diffstat (limited to 'apps/files_encryption')
-rw-r--r--apps/files_encryption/lib/proxy.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/proxy.php b/apps/files_encryption/lib/proxy.php
index c814e6cb55b..31d11338ef5 100644
--- a/apps/files_encryption/lib/proxy.php
+++ b/apps/files_encryption/lib/proxy.php
@@ -247,7 +247,7 @@ class Proxy extends \OC_FileProxy {
* @param resource $result
* @return resource
*/
- public function postFopen($path, &$result) {
+ public function postFopen($path, $result) {
$path = \OC\Files\Filesystem::normalizePath($path);