title: Declaring an instance variable in another class using PHP 5.2.17
body: <p>I simply want to declare an instance variable in a second class in the same file.
  The following example code seems okay to me, but the server results an error at the commented line:</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;?php
  
  class Locator {
      private $location = __FILE__;
  
      public function getLocation() {
          return $this-&gt;location;
      }
  }
  
  class Doc {
      private $loc = new Locator(); // [SYNTAX-ERROR] unexpected T_NEW
  
      public function locator() {
          return $this-&gt;loc;
      }
  }
  
  $doc = new Doc();
  var_dump( $doc-&gt;locator() );
  
  ?&gt;
  </code></pre>
  
  <p>Many thanks to everyone's help!</p>