Php code not executing - dies out when trying to refer to member of static class - no error displayed
<p>I'm having some problems with this piece of code. I've included a class declaration and trying to create an object of that class but my code dies out. It doesn't seem to be an include issue as all the files are being included even the files called for inclusion within the class file itself.</p>

<p>However the object is not created - I tried to put an echo statement in the __construct function but nothing it just doesn't run infact doesn't create the object and the code won't continue from there - plus no error is reported or displayed and I have error reporting set to E_ALL and display errors set to true </p>

<p>WHats happening here :(</p>

<p>=============EDIT</p>

<p>SOrry I checked again the error is prior to teh object creation thing - it dies out when it tries to refer to a constant in a static class like so:</p>

<pre><code>$v = Zend_Oauth::REQUEST_SCHEME_HEADER;
</code></pre>

<p>THis is the class or part of it - it has largely static functions its the Zend Oauth class:</p>

<pre><code>class Zend_Oauth
{
    const REQUEST_SCHEME_HEADER      = 'header';
    const REQUEST_SCHEME_POSTBODY    = 'postbody';
    const REQUEST_SCHEME_QUERYSTRING = 'querystring'; // continued
</code></pre>

<p>LIke I said no error is being reported at all :(</p>
