]> source.dussan.org Git - nextcloud-server.git/commit
Remove passing by reference to allow for proper GC
authorVincent Petry <pvince81@owncloud.com>
Fri, 12 Sep 2014 17:51:47 +0000 (19:51 +0200)
committerVincent Petry <pvince81@owncloud.com>
Fri, 12 Sep 2014 17:51:47 +0000 (19:51 +0200)
commitda9f9ae9b3b77b34c6b54ab789f1efe94a3e2781
treea3bf836b99d4af4093eaa676a69a90ec3eef2dac
parentc119a9fd32206b823fe29b13e582dfd1016137a6
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.
apps/files_encryption/lib/proxy.php