Doc #64223 [NEW]: batchInsert is not returning an array of statuses with "w" set to 1

From: Date: Sat, 16 Feb 2013 04:22:56 +0000
Subject: Doc #64223 [NEW]: batchInsert is not returning an array of statuses with "w" set to 1
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9526@lists.php.net to get a copy of this message
From: chris at like dot fm Operating system: Ubuntu lucid PHP version: 5.3.21 Package: mongo Bug Type: Documentation Problem Bug description:batchInsert is not returning an array of statuses with "w" set to 1 Description: ------------ --- From manual page: http://www.php.net/mongocollection.batchinsert#refsect1- mongocollection.batchinsert-returnvalues --- php mongo client 1.3.4 is installed. Batch insert is only returning a single associative array. Array ( [n] => 0 [lastOp] => 5.8454008700988E+18 [connectionId] => 109 [err] => [ok] => 1 ) Test script: --------------- Just do a batchInsert with WriteConcern set to 1. Expected result: ---------------- An array of arrays with statuses. Actual result: -------------- A single array like this: Array ( [n] => 0 [lastOp] => 5.8454008700988E+18 [connectionId] => 109 [err] => [ok] => 1 ) -- Edit bug report at https://bugs.php.net/bug.php?id=64223&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64223&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64223&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64223&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64223&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64223&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64223&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64223&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64223&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64223&r=support Expected behavior: https://bugs.php.net/fix.php?id=64223&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64223&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64223&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64223&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64223&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64223&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64223&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64223&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64223&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64223&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64223&r=mysqlcfg

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