Bug #55120 [Opn->Bgs]: MongoDB PHP driver, segfault if you dont rewind cursor first
| From: | felipe@php.net | Date: | Sun, 03 Jul 2011 17:42:27 +0000 |
| Subject: | Bug #55120 [Opn->Bgs]: MongoDB PHP driver, segfault if you dont rewind cursor first | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-161538@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55120&edit=1
ID: 55120
Updated by: felipe@php.net
Reported by: tl at jiujitsuforums dot com
Summary: MongoDB PHP driver, segfault if you dont rewind
cursor first
-Status: Open
+Status: Bogus
Type: Bug
Package: Unknown/Other Function
Operating System: Linux version 2.6.18-194.3.1.el5
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
For Mongo PHP driver, report bug at https://jira.mongodb.org/browse/PHP
Previous Comments:
------------------------------------------------------------------------
[2011-07-03 13:38:46] tl at jiujitsuforums dot com
Description:
------------
PHP version is actually 5.3.2 <-- did not show up in the list
While querying MongoDB using php driver,
simply iterating over a collection will sometimes cause a segfault in the php
process if you dont first rewind the cursor.
MongoDB version: 1.8
Mongo DB php driver version: 1.1.4-31
PHP version: 5.3.2
Test script:
---------------
$collection=$mongodb->blanks;
$cursor = $collection->find();
$cursor->rewind(); // REMOVE this and segfaults occur much of the time
foreach ($cursor as $obj) {
$blankId=$obj['blankId'];
}
Expected result:
----------------
Iterate over collection fine
Actual result:
--------------
segfault in php processi
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55120&edit=1