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

[PHP] set_error_handler() only triggering every Nth time

2012-03-22 Thread Daevid Vincent
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 see the error/output. In my 'includes/common.

[PHP] set_error_handler() only triggering every Nth time

2012-03-13 Thread Daevid Vincent
I am implementing a custom error handler and started noticing some bizarre behavior. Every Nth time I refresh the page, I see the error/output. In my 'includes/common.inc.php' the key things are these: set_error_handler('php_error_handler'); function php_error_handler($errno, $er

RES: [PHP] set_error_handler help

2008-05-05 Thread Thiago Pojda
Oh Yes this helped, thanks a lot :) I was missing the callback part ;) Regards, Thiago -Mensagem original- De: Jim Lucas [mailto:[EMAIL PROTECTED] Enviada em: sexta-feira, 2 de maio de 2008 15:26 Para: Thiago Pojda Assunto: Re: [PHP] set_error_handler help Thiago Pojda wrote: >

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

[PHP] set_error_handler help

2008-05-02 Thread Thiago Pojda
Hi guys, I'm trying some custom error handling functions in order to get emails when fatal errors come up in my production website. The thing is, I went to phpclasses and there was a good one, but it was a class. I'm very slow today, so I could not figure out how to get it working. So, I ju

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

[PHP] set_error_handler() fails

2006-05-04 Thread icy
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? PS: I use error_reporting(E_ALL) and init_set('display_errors', 'On') on PHP 5.1.3 -

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

[PHP] set_error_handler always returns false

2003-06-23 Thread Jeff Stewart
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? -- Jeff S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

[PHP] set_error_handler() with class, method as parameters problem.

2003-06-13 Thread Lukasz Karapuda
This is not exactly a bug report, because i am not sure where problem is. I am using PHP4.3.1 on Win2000/IIS. I am setting a custom error handler through: set_error_handler(array(&$objError, 'handleError')); where $objError is an instance of an error handling class. Then, i trigger a user error

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

[PHP] set_error_handler inside a class

2003-01-28 Thread electroteque
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 ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] set_error_handler() Keeps Triggering Errors

2002-11-09 Thread Monty
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 set very loosely: error_reporting (E_ERROR | E_USER_ERROR) - so not sure why it keep

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]

[PHP] set_error_handler() not catching some errors

2002-02-09 Thread Charlie Killian
set_error_handler() is passing some errors like: $d = x; Use of undefined constant x - assumed 'x' 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. Any ideas? My handler function: Function errorHa

[PHP] set_error_handler in a class

2001-11-27 Thread Holger Schopohl
Hi, how can i set an error handling function in a class? i have tried set_error_handler('myclass->myErrorHandler'); but it doesnt work. Any help? Regards, Holger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

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

[PHP] set_error_handler scope problems?

2001-05-17 Thread Dean Hall
I'm trying to use set_error_handler with a function name (in the global scope -- not a class method), and I'm getting a seg-fault in PHP. I'm wondering if it's a scope problem. Here's an abbreviation of what I have: (Main.php) include_once('Error.php'); class Main { function main() { Main

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,

[PHP] set_error_handler()

2001-04-16 Thread Boget, Chris
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

RE: [PHP] set_error_handler and parse errors

2001-03-26 Thread Neil Kimber
AIL PROTECTED] Subject: [PHP] set_error_handler and parse errors Is it just me, or do parse errors get reported by the engine even if you use your own error handler? I've registered my own error handler with "set_error_handler()", but it doesn't get called on parse errors -- the

[PHP] set_error_handler and parse errors

2001-03-25 Thread Dean Hall
Is it just me, or do parse errors get reported by the engine even if you use your own error handler? I've registered my own error handler with "set_error_handler()", but it doesn't get called on parse errors -- the manual seems to hint that this is the case (without actually saying it), and I sea

[PHP] set_error_handler()

2001-02-20 Thread Steve Meyers
I was thrilled to see the set_error_handler() functionality in PHP4, however we are having trouble implementing it because it cannot trap parse errors. Basically, we need to log any errors that occur to a MySQL database. In PHP3, we did this by hacking the source. Steve Meyers Build Manager MyC