Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-251

WritableStream::getSize() should include buffer length

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.1
    • Affects Version/s: 1.1.0
    • Component/s: 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:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: