Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-7545

mongodb-php-driver with oldest php driver

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • None

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 45 weeks, 6 days ago