PHP Static functions don't work when directory changes?
<p>I have a class that looks like this:</p>

<p>utils/Result.php</p>

<pre><code>&lt;?php

class Result
{
    public static function ok()
    {
     echo "OK";
    } 
}
</code></pre>

<p>If I create the following script</p>

<p>./sandbox.php</p>

<pre><code>&lt;?php

require_once("utils/Result.php");

print_r(Result::ok());
</code></pre>

<p>And run it with <code>php sandbox.php</code> it works fine. But if I do the following: <code>cd test &amp;&amp; php ../sandbox.php</code> it gives me the following error</p>

<pre><code>PHP Fatal error:  Call to undefined method Result::ok() in /mnt/hgfs/leapback/sandbox.php on line 5
</code></pre>

<p>Now, realize that the require statement seems to be working. If I add a property to the Result class, and use print_r on an instance of it, it looks right. But the static methods disappear. I'm very confused. I'm running php 5.2.6.</p>
