note 99394 added to mongocursor.count

From: Date: Sun, 15 Aug 2010 00:32:36 +0000
Subject: note 99394 added to mongocursor.count
Groups: php.notes 
Request: Send a blank email to php-notes+get-171680@lists.php.net to get a copy of this message
description of foundOnly argument is misleading function returns number of all object in collection if called count(FALSE). when called count(TRUE), it returns number of matched objects, *but returns 0 if no match conditions was given* as far, this function cannot be considered as a valid implementation of Countable interface, so don't be mistaken by its name ---- Server IP: 147.32.160.17 Probable Submitter: 81.200.55.240 ---- Manual Page -- http://www.php.net/manual/en/mongocursor.count.php Edit -- https://master.php.net/note/edit/99394 Del: integrated -- https://master.php.net/note/delete/99394/integrated Del: useless -- https://master.php.net/note/delete/99394/useless Del: bad code -- https://master.php.net/note/delete/99394/bad+code Del: spam -- https://master.php.net/note/delete/99394/spam Del: non-english -- https://master.php.net/note/delete/99394/non-english Del: in docs -- https://master.php.net/note/delete/99394/in+docs Del: other reasons-- https://master.php.net/note/delete/99394 Reject -- https://master.php.net/note/reject/99394 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171680) next »