title: php get parent class file path
body: <p><strong>example</strong></p>
  
  <p>index.php //I know where this file is</p>
  
  <pre><code>$class = new childclass();
  $class-&gt;__initComponents();
  </code></pre>
  
  <p>somefile.php //I know where this file is</p>
  
  <pre><code>Class childclass extends parentclass {
  
  }
  </code></pre>
  
  <p>someparentfile.php // I don't know where this file is</p>
  
  <pre><code>Class parentclass {
    function __initComponents(){
      //does something
    }
  }
  </code></pre>
  
  <p>I need to find out where someparentfile.php is.</p>
  
  <p><strong>reason:</strong></p>
  
  <p>I am debugging some difficult php code that someone else wrote, I need to find out what file contains the code that defines a class parameter.</p>
  
  <p>I found it as far as a class method calling a function that does this:</p>
  
  <pre><code>$class-&gt;__initComponents();//the parameter is defined somewhere in there
  </code></pre>
  
  <p>The problem is that this function is within a parent class "MyClass" of the above $class, and I have no idea where the parent class is.</p>
  
  <p>is there a way or some debug function by which I can find out the location of this parent class or at least where the parameter was defined?</p>
  
  <p>p.s. 
  downloading the whole application and then using text search would be unreasonable.</p>