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.
This commit is contained in:
parent
c119a9fd32
commit
da9f9ae9b3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue