Doc #52220 [NEW]: mongodb update not work

From: Date: Thu, 01 Jul 2010 10:41:10 +0000
Subject: Doc #52220 [NEW]: mongodb update not work
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4630@lists.php.net to get a copy of this message
From: Operating system: windows 2003 PHP version: 5.2.13 Package: Unknown/Other Function Bug Type: Documentation Problem Bug description:mongodb update not work Description: ------------ $m2 = new Mongo("127.0.0.1:27017"); $db2 = $m2 -> TestData; $comname = $db2 -> TestCom; $newdata = array('$set' => array("ComName"=>"qwert"));//$cname $comname -> update(array('ID' => "1419518423"),$newdata); not modify ??? 没有修改成功 Test script: --------------- 1. $m2 = new Mongo("127.0.0.1:27017"); $db2 = $m2 -> TestData; $comname = $db2 -> TestCom; $newdata = array('$set' => array("ComName"=>"qwert"));//$cname $comname -> update(array('ID' => "1419518423"),$newdata); not modify 2. $query = array('ID' => $comid); //##$cursor = $comname -> find($query);//NULL //@@$cursor = $comname -> find(); the @@ line is work the ## line is not wok ??? -- Edit bug report at http://bugs.php.net/bug.php?id=52220&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52220&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52220&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52220&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52220&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52220&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52220&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52220&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52220&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52220&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52220&r=support Expected behavior: http://bugs.php.net/fix.php?id=52220&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52220&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52220&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52220&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52220&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52220&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52220&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52220&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52220&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52220&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52220&r=mysqlcfg

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