Doc #63001 [Opn]: MongoCollection::insert() doesn't take `true` for safe insert

From: Date: Sat, 08 Sep 2012 16:09:20 +0000
Subject: Doc #63001 [Opn]: MongoCollection::insert() doesn't take `true` for safe insert
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8833@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: laruence@php.net Reported by: jeremy dot benoist at gmail dot com Summary: MongoCollection::insert() doesn't take true for safe insert Status: Open Type: Documentation Problem -Package: Unknown/Other Function +Package: mongo PHP Version: Irrelevant Block user comment: N Private report: N New Comment: change package Previous Comments: ------------------------------------------------------------------------ [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

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