php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55437 mongodb driver problem, cannot insert, cause segfault
Submitted: 2011-08-17 01:53 UTC Modified: 2011-08-17 03:17 UTC
From: rubing dot duan at gmail dot com Assigned:
Status: Not a bug Package: *Math Functions
PHP Version: 5.3SVN-2011-08-17 (SVN) OS: ubuntu
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
46 - 30 = ?
Subscribe to this entry?

 
 [2011-08-17 01:53 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [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
Please report this bug to the mongodb packageon pecl.php.net(http://pecl.php.net/package/mongo)
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Mar 05 05:01:23 2021 UTC