Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
PHP 5.6 OSX 10.11
*Location*: https://docs.mongodb.org/ecosystem/drivers/php/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Firefox/45.0
*Referrer*: https://www.google.it
*Screen Resolution*: 1440 x 900
*repo*: docs-ecosystem
*source*: drivers/php
Description
hi,
I try used PHP mongodb drive with old mongo driver - I have use all two.
but with:
$manager = new \MongoDB\Driver\Manager("mongodb://127.0.0.1:27017/ca_beta");
$query = new \MongoDB\Driver\Query([], []);
$cursor = $manager->executeQuery("ca_beta.courses", $query);
I always return:
segmentation fault.
I recompiled driver with 1 work around:
php_mongo.c:2499
FROM: PHP_MINIT(Cursor)(INIT_FUNC_ARGS_PASSTHRU);
TO: PHP_MINIT(CursorDB)(INIT_FUNC_ARGS_PASSTHRU);
Cursor.c:294
FROM: PHP_MINIT_FUNCTION(Cursor)
TO: PHP_MINIT_FUNCTION(CursorDB)
And now it's fine and I get cursor with array
![]()