title: PHP namespace with Dynamic class name
body: <p>Wondering if anyone else has encountered this problem when utilizing the new ability to namespace classes using PHP 5.3.</p>
  
  <p>I am generating a dynamic class call utilizing a separate class for defining user types in my application.  Basically the class definer takes an integer representation of types and interprets them, returning a string containing the classname to be called as the model for that user.</p>
  
  <p>I have an object model for the user's type with that name defined in the global scope, but I have another object with the same name for the user's editor in the Editor namespace.  For some reason, PHP won't allow me to make a namespaced dynamic call as follows.</p>
  
  <pre><code>$definition = Definer::defineProfile($_SESSION['user']-&gt;UserType);
  new \Editor\$definition();
  </code></pre>
  
  <p>The identical syntax works for calling the global basic object model in the global namespace and I use it this way reliably throughout the application.</p>
  
  <pre><code>$definition = Definer::defineProfile($_SESSION['user']-&gt;UserType);
  new $definition();
  </code></pre>
  
  <p>This will correctly call the dynamically desired class.</p>
  
  <p>Is there a reason the two would behave differently, or has dynamic calling for namespaces not been implemented in this manor yet as this is a new feature?  Is there another way to dynamically call a class from another namespace without explicitly placing its name in the code, but from within a variable?</p>