Don't forget to increment counter when writing data.
authorRoland Haeder <roland@mxchange.org>
Sat, 23 May 2015 19:48:19 +0000 (21:48 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 23 May 2015 19:48:19 +0000 (21:48 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/file_directories/binary/class_BaseBinaryFile.php

index 8debce7..f0c3d92 100644 (file)
@@ -401,6 +401,9 @@ class BaseBinaryFile extends BaseAbstractFile {
                // Write data at given position
                $this->getPointerInstance()->writeAtPosition($seekPosition, $data);
 
+               // Increment counter
+               $this->incrementCounter();
+
                // Update seek position
                $this->updateSeekPosition();