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 8debce70d844326f6505f56786097f6ae1bf3c09..f0c3d925e22c66e60c3590908fb714157c510a3f 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();