]> git.mxchange.org Git - core.git/commitdiff
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 824df452eec683a41c7d534d671d835edb5962af..e548fe20887af11d5b93ce5dc83c40fa69dd9ff7 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);