|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-08-17 03:17 UTC] laruence@php.net
-Status: Open
+Status: Bogus
-Package: *General Issues
+Package: *Math Functions
[2011-08-17 03:17 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 18:00:01 2025 UTC |
Description: ------------ the latest version of mongodb driver (1.2.3) does not support insert. ......... $collection->insert(array('user' => $username, 'pwd' => md5($username . ":mongo:" . $password) , 'readOnly' => $readOnly), array('safe' => true)); ......... I got this output: ..Segmentation fault After I reinstalled mongodb driver (1.1.4), the problem was solved. Test script: --------------- ......... $collection = $this->mongo->selectDB($databaseName)->selectCollection("system.users"); $collection->insert(array('user' => $username, 'pwd' => md5($username . ":mongo:" . $password) , 'readOnly' => $readOnly), array('safe' => true)); ......... Expected result: ---------------- can run Actual result: -------------- ..Segmentation fault