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
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:
24 + 24 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 03:01:29 2024 UTC