Skip to content

1.1.1

Compare
Choose a tag to compare
@jmikola jmikola released this 18 Jan 21:29
· 1588 commits to master since this release

The PHP team is happy to announce that version 1.1.1 of our MongoDB PHP library is now available. This library is a high-level abstraction for the PHP 5, PHP 7, and HHVM drivers (i.e. mongodb extension).

Release Highlights

This release resolves a number of issues related to GridFS.

If a GridFS upload is aborted due to an error, the library will now attempt to delete any previously uploaded chunks to avoid leaving orphan documents behind in the chunks collection. Also related to uploads, the reported file size of writable streams now includes buffered data that has not yet been inserted to a chunk document. Previously, only bytes that were inserted in chunk documents were considered.

Several improvements were made to fstat() output for GridFS streams. Readable and writable streams now report their "mode" as 0100444 and 0100222, respectively. Both types of streams now report their file document's "uploadDate" as "mtime" and "ctime". Additionally, the file's chunk size is now reported as "blksize".

Lastly, the readable and writable stream classes were refactored to buffer chunk data using PHP strings instead of php://memory streams. While providing an immediate performance improvement, this change will also allow us to more easily support fseek() for readable streams in the forthcoming 1.2.0 release (see: PHPLIB-213).

A complete list of resolved issues in this release may be found at:
https://jira.mongodb.org/secure/ReleaseNote.jspa?projectId=12483&version=17829

Documentation

Documentation for this library may be found at:
https://docs.mongodb.com/php-library/

Feedback

If you encounter any bugs or issues with this library, please report them via this form:
https://jira.mongodb.org/secure/CreateIssue.jspa?pid=12483&issuetype=1

Installation

This library may be installed or upgraded with:

composer require mongodb/mongodb=^1.1.0

Installation instructions for the PHP and HHVM driver may be found in the PHP.net documentation.