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?

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.