Uploaded image for project: 'PHP Legacy Driver'
  1. PHP Legacy Driver
  2. PHP-663

cakephp-mongodb throws empty exception on connection failure

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Works as Designed
    • Affects Version/s: 1.3.2
    • Fix Version/s: None
    • Component/s: pecl-mongo
    • Labels:
    • Environment:
      Ubuntu 12.04.1 LTS - Apache/2.2.22 - PHP 5.3.10-1ubuntu3.4 - MongoDB shell version: 2.2.2
    • # Replies:
      6
    • Last comment by Customer:
      false

      Description

      I'm having failed Mongo connections on every server I upgrade to 1.3.2 (was working in 1.2.10).

      I get an empty message with code=0 from MongoException.

      This has been reproduced on 3 different servers :

      • Ubuntu 12.04.1 LTS
        $ apache2 -v
        Server version: Apache/2.2.22 (Ubuntu)
        Server built: Nov 8 2012 21:37:30
        $ php -v
        PHP 5.3.10-1ubuntu3.4 with Suhosin-Patch (cli) (built: Sep 12 2012 18:59:41)
        Copyright (c) 1997-2012 The PHP Group
        Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
        $ mongo --version
        MongoDB shell version: 2.2.2

      Code used to test :

      $host = 'mongodb://root:myPassword#someText#!@127.0.0.1:27017/col_dev';
      $testMongo = new Mongo($host, array("persist" => false));

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                7 years, 12 weeks, 3 days ago
                Date of 1st Reply: