|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-07-03 13:42 UTC] felipe@php.net
-Status: Open
+Status: Bogus
[2011-07-03 13:42 UTC] felipe@php.net
[2011-07-03 19:12 UTC] tl at jiujitsuforums dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 11:00:01 2025 UTC |
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