Doc #63091 [NEW]: MongoCollection::group() example needs updating

From: Date: Fri, 14 Sep 2012 14:47:09 +0000
Subject: Doc #63091 [NEW]: MongoCollection::group() example needs updating
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8860@lists.php.net to get a copy of this message
From: fhagard at lightcube dot us Operating system: *nix PHP version: Irrelevant Package: mongo Bug Type: Documentation Problem Bug description:MongoCollection::group() example needs updating 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. -- Edit bug report at https://bugs.php.net/bug.php?id=63091&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63091&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63091&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63091&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63091&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=63091&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=63091&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63091&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63091&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63091&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63091&r=support Expected behavior: https://bugs.php.net/fix.php?id=63091&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63091&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63091&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63091&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63091&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63091&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63091&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63091&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63091&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63091&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63091&r=mysqlcfg

« previous php.doc.bugs (#8860) next »