php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #69567 Incomplete return value documentation for MongoCollection::update
Submitted: 2015-05-04 04:04 UTC Modified: 2021-08-03 11:39 UTC
From: michael dot j dot blaszczyk at gmail dot com Assigned: cmb (profile)
Status: Closed Package: mongo (PECL)
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
27 + 37 = ?
Subscribe to this entry?

 
 [2015-05-04 04:04 UTC] michael dot j dot blaszczyk at gmail dot com
Description:
------------
---
From manual page: http://php.net/manual/en/mongocollection.update.php
---

MongoCollection::update returns an "nModified" property in the status array, however, this is not documented.

This property is not returned from MongoCollection::insert and so referring the user to the status array documentation in MongoCollection::insert results in incomplete documentation.

Expected result:
----------------
The documentation of the return value for MongoCollection::update includes the "nModified" property.

Actual result:
--------------
The documentation of the return value for MongoCollection::update does not include the "nModified" property.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-08-03 11:39 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-08-03 11:39 UTC] cmb@php.net
The documentation of the mongo package has been removed from the
manual, because the mongo package is superseeded by the mongodb
package for years.  This ticket is obsolete.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 20:01:31 2024 UTC