Php code not executing - dies out when trying to refer to member of static class - no error displaye

Posted by Ali on Stack Overflow See other posts from Stack Overflow or by Ali
Published on 2010-03-21T13:35:46Z Indexed on 2010/03/21 13:51 UTC
Read the original article Hit count: 199

Filed under:
|

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.

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

WHats happening here :(

=============EDIT

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:

$v = Zend_Oauth::REQUEST_SCHEME_HEADER;

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

class Zend_Oauth
{
    const REQUEST_SCHEME_HEADER      = 'header';
    const REQUEST_SCHEME_POSTBODY    = 'postbody';
    const REQUEST_SCHEME_QUERYSTRING = 'querystring'; // continued

LIke I said no error is being reported at all :(

© Stack Overflow or respective owner

Related posts about php

Related posts about error