php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63091 MongoCollection::group() example needs updating
Submitted: 2012-09-14 14:47 UTC Modified: 2013-03-03 00:19 UTC
From: fhagard at lightcube dot us Assigned: bjori (profile)
Status: Closed Package: mongo (PECL)
PHP Version: Irrelevant OS: *nix
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fhagard at lightcube dot us
New email:
PHP Version: OS:

 

 [2012-09-14 14:47 UTC] fhagard at lightcube dot us
Description:
------------
---
From manual page: http://www.php.net/mongocollection.group#refsect1-
mongocollection.group-examples
---

In Example #2 MongoCollection::group(), the $condition array should be updated to:

$condition = array('condition' => array("a" => array( '$gt' => 1)));

instead of:

$condition = array("a" => array( '$gt' => 1));

As of 1.2.11+ there is a depreciation notice thrown since $options has been 
modified.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-03 00:18 UTC] bjori@php.net
Automatic comment from SVN on behalf of bjori
Revision: http://svn.php.net/viewvc/?view=revision&revision=329620
Log: Fixed bug#63091 MongoCollection::group() example needs updating
# Thanks fhagard at lightcube dot us !
 [2013-03-03 00:18 UTC] bjori@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: bjori
 [2013-03-03 00:18 UTC] bjori@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2013-03-03 00:19 UTC] bjori@php.net
Heh. Wrong quickfix message.. This is now fixed in the docs ofcourse :)

Thanks!
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 08:01:29 2025 UTC