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
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.
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
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:
>
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
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
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
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
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
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
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
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
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
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
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
-
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
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
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
> 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
, 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
> 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
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
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
] (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
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
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
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
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]
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
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
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
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
> ""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
""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
> 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
> 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
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,
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
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
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
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
41 matches
Mail list logo