PHP4 No Error When Missing Method is Called

Posted by INTPnerd on Stack Overflow See other posts from Stack Overflow or by INTPnerd
Published on 2010-04-15T01:17:26Z Indexed on 2010/04/15 1:23 UTC
Read the original article Hit count: 305

Filed under:

I have come across an annoying problem while writing some PHP4 code. I renamed the method of a class but I forgot to rename it where it was being called from. The annoying part is it was hard to track down where the problem was because no error was triggered. The script simply aborted leaving the web page partially rendered. Is it normal for this not to trigger an error or is there something wacky going on here? If this is normal is there a way to force this kind of thing to cause an error?

© Stack Overflow or respective owner

Related posts about php4