Mode must be 'a+b' (append, binary-safe).
authorRoland Haeder <roland@mxchange.org>
Thu, 15 May 2014 20:54:38 +0000 (22:54 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 15 May 2014 20:54:38 +0000 (22:54 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/file_directories/io/class_FrameworkFileInputOutputPointer.php

index 824df45..e548fe2 100644 (file)
@@ -57,7 +57,7 @@ class FrameworkFileInputOutputPointer extends BaseFileIo {
                }
 
                // Try to open a handler
-               $filePointer = fopen($fileName, 'r+b');
+               $filePointer = fopen($fileName, 'a+b');
                if ((is_null($filePointer)) || ($filePointer === FALSE)) {
                        // Something bad happend
                        throw new FileIoException($fileName, self::EXCEPTION_FILE_POINTER_INVALID);