Jump to content

Calls to undefined function NOT throwing errors


AFTNHombre

Recommended Posts

I have this code that has

$this->BeginTransaction();

all over it. These are in classes where no such function is defined, and they don't have parents either. It's driving my crazy trying to figure out why they are there, why there's not so much as a warning being given and what, if anything, is being called.

Now I do have a

set_error_handler("amfErrorHandler");

and in amfErrorHandler I have

if( error_reporting() != 0 && ($amfphpErrorLevel | $level) == $amfphpErrorLevel ) {
throw new VerboseException($string, $level, $file, $line);
}

I don't remember what $amfphpErrorLevel is, except that it should only be ignoring things like E_STRICT. Also, no exception is being thrown. So what do I do w/this code?

Link to comment
Share on other sites

the error handler is using the bitwise or ( | ) operator. So $amfphpErrorLevel and $level must be integer representations of error levels. If an exception is not being thrown, then the conditions are not being met. Just from this code snippet I can't really help, there are too many things unanswered here.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.