add more valid fopen modes

This commit is contained in:
Robin Appelman 2012-02-26 15:32:58 +01:00
parent ff0a542e48
commit 857535403c
1 changed files with 8 additions and 0 deletions

View File

@ -255,18 +255,26 @@ class OC_FilesystemView {
$hooks=array();
switch($mode){
case 'r':
case 'rb':
$hooks[]='read';
break;
case 'r+':
case 'rb+':
case 'w+':
case 'wb+':
case 'x+':
case 'xb+':
case 'a+':
case 'ab+':
$hooks[]='read';
$hooks[]='write';
break;
case 'w':
case 'wb':
case 'x':
case 'xb':
case 'a':
case 'ab':
$hooks[]='write';
break;
default: