开发者

PHP4 No Error When Missing Method is Called

I have come across an annoying problem while writing some PHP4 code. I renamed the method of a class but I forgot to rena开发者_如何学运维me 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?


Try setting the error_reporting() at the top of your script, like this:

error_reporting(E_ALL); // report all errors
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜