diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Config/Output.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Config/Output.php b/src/Config/Output.php index 7893ca7..babacf9 100644 --- a/src/Config/Output.php +++ b/src/Config/Output.php @@ -170,6 +170,9 @@ trait Output /** * Output all data from the CSV + * + * @return int Returns the number of characters read from the handle + * and passed through to the output. */ protected function fpassthru() { @@ -185,7 +188,9 @@ trait Output $csv->fseek(strlen($input_bom)); } echo $bom; - $csv->fpassthru(); + $res = $csv->fpassthru(); + + return $res + strlen($bom); } /** |