Doctrine MongoDB ODM
  1. Doctrine MongoDB ODM
  2. MODM-104

Creating mongo configuration class instance hangs php

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0.0BETA1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Ubuntu 10.4, PHP 5.3.3, MongoDB 1.6.5, doctrinemongoODM installed with PEAR, also present Doctrine 1.2.3, php handling installed via pecl

      Description

      After pasting down the doc tutorial example I've noticed that php hangs on
      Configuration instance creation.

      require 'Doctrine/Common/ClassLoader.php';
      use Doctrine\Common\ClassLoader,
      Doctrine\Common\Annotations\AnnotationReader,
      Doctrine\ODM\MongoDB\DocumentManager,
      Doctrine\ODM\MongoDB\Mongo,
      Doctrine\ODM\MongoDB\Configuration,
      Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;
      // ODM Classes
      $classLoader = new ClassLoader('Doctrine\ODM', 'mongodb_odm/lib');
      $classLoader->register();
      // Common Classes
      $classLoader = new ClassLoader('Doctrine\Common', 'mongodb_odm/lib/vendor/doctrine-common/lib');
      $classLoader->register();
      // Document classes
      $classLoader = new ClassLoader('Documents', _DIR_);
      $classLoader->register();

      //-------hangs here
      $config = new Configuration();

      //tried explicit too
      // new Doctrine\ODM\MongoDB\Configuration();

      No errors or warnigs of any kind generated.

        Activity

        Hide
        Jonathan H. Wage added a comment -

        Hmm, I am not sure this is a problem with any code or anything in the odm, but something wrong with your environment maybe?

        Show
        Jonathan H. Wage added a comment - Hmm, I am not sure this is a problem with any code or anything in the odm, but something wrong with your environment maybe?
        Hide
        Peter Jasiulewicz added a comment -

        No reason why it would hang on a simple object constucting. I'm using the box for development for a while now, Doctrine 1.2.3 installd too.
        Will try to change the box after Xmas.

        Show
        Peter Jasiulewicz added a comment - No reason why it would hang on a simple object constucting. I'm using the box for development for a while now, Doctrine 1.2.3 installd too. Will try to change the box after Xmas.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Peter Jasiulewicz
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: