This factory method requires a 2nd parameter, 'wb' should be okay.
authorRoland Häder <haeder@hmmdeutschland.de>
Thu, 22 May 2014 08:18:11 +0000 (10:18 +0200)
committerRoland Häder <haeder@hmmdeutschland.de>
Thu, 22 May 2014 08:18:11 +0000 (10:18 +0200)
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
inc/classes/main/file_directories/io_stream/class_FileIoStream.php

index 599bc9f3d37a3a8b9bbd791c102c6078894b29c8..14f71904cf2b6f159c942f9656a3ec20c56f1293 100644 (file)
@@ -81,7 +81,7 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
                for ($idx = 0; $idx < 5; $idx++) {
                        // Get a file output pointer
                        try {
                for ($idx = 0; $idx < 5; $idx++) {
                        // Get a file output pointer
                        try {
-                               $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_output_class', array($fileName));
+                               $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_output_class', array($fileName, 'wb'));
                        } catch (FileIoException $e) {
                                // Create missing directory
                                $dirName = dirname($fileName);
                        } catch (FileIoException $e) {
                                // Create missing directory
                                $dirName = dirname($fileName);