Bug #55437 [Opn->Bgs]: mongodb driver problem, cannot insert, cause segfault
Edit report at https://bugs.php.net/bug.php?id=55437&edit=1
ID: 55437
Updated by: laruence@php.net
Reported by: rubing dot duan at gmail dot com
Summary: mongodb driver problem, cannot insert, cause
segfault
-Status: Open
+Status: Bogus
Type: Bug
-Package: *General Issues
+Package: *Math Functions
Operating System: ubuntu
PHP Version: 5.3SVN-2011-08-17 (SVN)
Block user comment: N
Private report: N
New Comment:
Please report this bug to the mongodb packageon pecl.php.net(http://pecl.php.net/package/mongo)
Previous Comments:
------------------------------------------------------------------------
[2011-08-17 01:53:29] rubing dot duan at gmail dot com
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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55437&edit=1
Thread (2 messages)