Doc #63001 [Opn->Csd]: MongoCollection::insert() doesn't take `true` for safe insert
| From: | derick@php.net | Date: | Sun, 14 Jul 2013 19:38:05 +0000 |
| Subject: | Doc #63001 [Opn->Csd]: MongoCollection::insert() doesn't take `true` for safe insert | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10070@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63001&edit=1
ID: 63001
Updated by: derick@php.net
Reported by: jeremy dot benoist at gmail dot com
Summary: MongoCollection::insert() doesn't take
true for
safe insert
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: mongo
PHP Version: Irrelevant
-Assigned To:
+Assigned To: derick
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2012-09-08 16:09:20] laruence@php.net
change package
------------------------------------------------------------------------
[2012-09-02 21:52:15] jeremy dot benoist at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/mongocollection.insert#example-1449
---
As described in the revision log:
> The options parameter does no longer accept just a boolean to signify a safe
insert. Instead, this now has to be done with array('safe' => true).
The example (on both code part) of the page display the second argument as a
boolean instead of an array:
> $collection->insert($person, true);
Should be
> $collection->insert($person, array('safe' => true));
Expected result:
----------------
$collection->insert($person, array('safe' => true));
Actual result:
--------------
$collection->insert($person, true);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63001&edit=1