Php code not executing - dies out when trying to refer to member of static class - no error displaye
- by Ali
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 :(