|  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
 [2012-09-14 14:47 UTC] fhagard at lightcube dot us
From manual page:

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 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-03-03 00:18 UTC]
Automatic comment from SVN on behalf of bjori
Log: Fixed bug#63091 MongoCollection::group() example needs updating
# Thanks fhagard at lightcube dot us !
 [2013-03-03 00:18 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: bjori
 [2013-03-03 00:18 UTC]
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

 For Windows:
Thank you for the report, and for helping us make PHP better.

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

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sat Apr 17 00:01:24 2021 UTC