Re: [PHP] set_error_handler() only triggering every Nth time

2012-03-22 Thread Robert Cummings
On 12-03-22 03:57 PM, Daevid Vincent wrote: Resending since I didn't get a single reply. Maybe it got lost? -Original Message- Sent: Tuesday, March 13, 2012 5:58 PM I am implementing a custom error handler and started noticing some bizarre behavior. Every Nth time I refresh the page, I

Re: [PHP] set_error_handler help

2008-05-02 Thread Craige Leeder
I beleive you can also do set_error_handler(array('classname', 'myMethod')); for static methods. - Craige On Fri, May 2, 2008 at 2:26 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > > > Is there any way to use a class to handle errors? I've tried some stuff > like > > set_error_handler("Error_Han

Re: [PHP] set_error_handler help

2008-05-02 Thread Richard Heyes
Is there any way to use a class to handle errors? I've tried some stuff like set_error_handler("Error_Handler::logError" and such, but with no luck. It accepts a "callback type, which is a pseudo type. Basically an array containg the object and the method to use. Eg. $obj = new ErrorHandlingO

Re: [PHP] set_error_handler() fails

2006-05-06 Thread Richard Lynch
On Fri, May 5, 2006 8:08 am, Martin Alterisio \"El Hombre Gris\" wrote: > And set_error_handler() returns NULL because there isn't a previously > defined error handler, not because it failed. Since it's documented to return NULL when it fails to set the error handler, one would hope it does NOT re

Re: [PHP] set_error_handler() fails

2006-05-06 Thread Richard Lynch
On Fri, May 5, 2006 6:20 am, icy wrote: > chris smith wrote: >> >> What does your code look like? > > I just realized that when called a second time, set_error_handler() > returns my custom error handler but it is never triggered. > Code looks like this: > >if (set_error_handler('core_error

Re: [PHP] set_error_handler() fails

2006-05-05 Thread Martin Alterisio \"El Hombre Gris\"
icy escribió: chris smith wrote: What does your code look like? I just realized that when called a second time, set_error_handler() returns my custom error handler but it is never triggered. Code looks like this: '; trigger_error('test error'); var_dump(set_error_handler('core_er

Re: [PHP] set_error_handler() fails

2006-05-05 Thread icy
chris smith wrote: What does your code look like? I just realized that when called a second time, set_error_handler() returns my custom error handler but it is never triggered. Code looks like this: '; trigger_error('test error'); var_dump(set_error_handler('core_error_han

Re: [PHP] set_error_handler() fails

2006-05-05 Thread chris smith
On 5/5/06, icy <[EMAIL PROTECTED]> wrote: Richard Lynch wrote: > It's possible that you have mistaken whatever set_error_handler > returns for "no previous error handler" for NULL... > > Are you using === NULL or is_null() to test? > > If not, I suspect it's really returning FALSE or '' and what

Re: [PHP] set_error_handler() fails

2006-05-05 Thread icy
Richard Lynch wrote: It's possible that you have mistaken whatever set_error_handler returns for "no previous error handler" for NULL... Are you using === NULL or is_null() to test? If not, I suspect it's really returning FALSE or '' and what you think is an error condition is, in fact, not an

Re: [PHP] set_error_handler() fails

2006-05-04 Thread Richard Lynch
On Thu, May 4, 2006 4:19 pm, icy wrote: > I use set_error_handler() in my script but it fails and returns NULL > indicating an error has happened. > But there are no entries in error.log ore something similar. > How can I find out what actually went wrong? It's possible that you have mistaken what

Re: [PHP] set_error_handler always returns false

2003-06-23 Thread Lars Torben Wilson
On Mon, 2003-06-23 at 15:12, Jeff Stewart wrote: > I'm using PHP 4.3.1 as an Apache module. No matter what I try, I can't get > set_error_handler() to do anything other than return false. Under what > circumstances does this happen? > > function doobee($errno, $errstr, $errfile, $errline, $errc

Re: [PHP] set_error_handler inside a class

2003-01-28 Thread 1LT John W. Holmes
> sorry is there a way to do this in php3 ? my work currently only has php3 , > where i am upgrading it for them soon, this is a bummer, i soughta wanna > catch errors and show the line and file in the error too Nope... it's 4.0.1 and higher only. UPGRADE!! :) ---John Holmes... -- PHP General

RE: [PHP] set_error_handler inside a class

2003-01-28 Thread Dan Rossi
, January 29, 2003 4:51 AM To: 'electroteque'; [EMAIL PROTECTED] Subject: RE: [PHP] set_error_handler inside a class > hi guys how is ti possible to do a set_error_handler within a class so it > will trigger the callback function and so will be able to return the line > and

RE: [PHP] set_error_handler inside a class

2003-01-28 Thread John W. Holmes
> hi guys how is ti possible to do a set_error_handler within a class so it > will trigger the callback function and so will be able to return the line > and file in the message ? You'd set it just like you would anywhere else in your code. If you want the callback function to be a method in you

Re: [PHP] set_error_handler() Keeps Triggering Errors

2002-11-10 Thread Michael Sims
On Sun, 10 Nov 2002 10:48:46 -0500, you wrote: >Hi Earnest. I found these user notes in the PHP manual, but, it's confusing >and seems to be a bit contradictory: It's simple: A user defined error handler cannot handle parse errors or compile time errors. That makes sense to me...if your script

Re: [PHP] set_error_handler() Keeps Triggering Errors

2002-11-10 Thread Monty
] (Ernest E Vogelsinger) > Newsgroups: php.general > Date: Sun, 10 Nov 2002 10:42:05 +0100 > To: Monty <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] set_error_handler() Keeps Triggering Errors > > At 06:34 10.11.2002, Monty said: > [snip

Re: [PHP] set_error_handler() Keeps Triggering Errors

2002-11-10 Thread Ernest E Vogelsinger
At 06:34 10.11.2002, Monty said: [snip] >When I use set_error_handler('error_function') in my scripts, errors are >constantly being triggered that I've never seen before. If I comment the >handler function out, the errors go away. I have the error reporting s

Re: [PHP] set_error_handler() not catching some errors

2002-02-09 Thread Charlie Killian
Thanks Mike. I updated display_errors = On and now I see the errors. Charlie > Sounds like you have your php.ini configured to not display errors, since > you are not seeing the parse error message in your HTML output... > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] set_error_handler() not catching some errors

2002-02-09 Thread Michael Sims
At 04:36 PM 2/9/2002 -0800, Charlie Killian wrote: >But others like not including a semicolon returns nothing: >$d = 3 > >The page is not returned there is no error and the page is stopped being >parsed. This is by design. Quoting from http://bugs.php.net/bug.php?id=9386: [17 Jun 2001 4:56am]

Re: [PHP] set_error_handler scope problems?

2001-05-17 Thread Dean Hall
Eek. Nevermind. The problem, for anyone who is interested, is that you cannot specify that any parameters in the error-handler function to be passed by reference. Dean. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

RE: [PHP] set_error_handler()

2001-04-17 Thread Boget, Chris
> ""Boget, Chris"" <[EMAIL PROTECTED]> wrote: > > Can you use the above function to set the error > > handler to a custom class? If so, how? I've been > > having no luck no matter what I do... > I tried doing something like: > set_error_handler("Error::handleError"); > myself, and to no avail. I

Re: [PHP] set_error_handler()

2001-04-17 Thread Dean Hall
""Boget, Chris"" <[EMAIL PROTECTED]> wrote: > Can you use the above function to set the error > handler to a custom class? If so, how? I've been > having no luck no matter what I do... > > Chris Chris. I tried doing something like: set_error_handler("Error::handleError"); myself, and to no a

RE: [PHP] set_error_handler()

2001-04-16 Thread Boget, Chris
> If I'm not mistaken set_error_handler() takes a string that > is the name of a function, I am sure in that function you > can instantiate whatever class you want. After thinking about it some more, I'm doing this. Not sure if this is the best way to go about it, but it allows me to do what I

RE: [PHP] set_error_handler()

2001-04-16 Thread Boget, Chris
> If I'm not mistaken set_error_handler() takes a string that > is the name of a function, I am sure in that function you can > instantiate whatever class you want. I thought about that. But ideally, what I'm trying to do is trap the errors with a class method (after instantiating) then print

Re: [PHP] set_error_handler()

2001-04-16 Thread Morgan Curley
If I'm not mistaken set_error_handler() takes a string that is the name of a function, I am sure in that function you can instantiate whatever class you want. morgan At 03:57 PM 4/16/2001, Boget, Chris wrote: >Can you use the above function to set the error >handler to a custom class? If so,

RE: [PHP] set_error_handler and parse errors

2001-03-26 Thread Neil Kimber
Yep, you're right. But this actually makes sense. Parse errors mean that your code is just plain wrong and cannot/will not run with any level of error-reporting. >From a technical stand-point it also makes a lot of sense. Imagine if the parser fails 1/2 way through parsing code before it gets to