WritableStream::getSize() should include buffer length

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.1.1
    • Affects Version/s: 1.1.0
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, WriteableStream only considers inserted chunks when reporting its file length. The buffer size should also be reported, since files can only be appended and that data will ultimately be inserted into the next chunk (assuming an exception does not occur).

      When seeking is implemented (PHPLIB-213), this will make the file's reported size consistent with its position from ftell().

            Assignee:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: