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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: michael dot j dot blaszczyk at gmail dot com
New email:
PHP Version: OS:

 

 [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 18:01:32 2024 UTC