Re: Re: MDB2 beta1 problem
| From: | Joshua Eichorn | Date: | Fri, 23 Apr 2004 16:21:41 +0000 |
| Subject: | Re: Re: MDB2 beta1 problem | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12096@lists.php.net to get a copy of this message | ||
Hodicska Gergely wrote:
Hi!Of course it would still be nicer if php had a method so you could check if including was possible instead of silencing errors since even a silenced error goes into the error reporting code and is slower. -joshthis is what I do :-) but appearently Joshuas error call back gets triggered even for silenced errors. I dont have much experience with custom error handlers though.The problem is (I think) with Joshua's error handler, that he don't call before echoing the error message the error_reporting function. if (error_reporting()) {echo $errMsg;} else {// There was a silenced error} Felho Thats pretty much it, i'm actually overriding my more complex one since im running this code into a script and fancy html output doesn't look to hot on my term and i forgot to add that check in.