#19236 [Opn]: Need $php_errorLineNumber $php_errorScript in addition to $php_errormsg

From: Date: Wed, 04 Sep 2002 22:11:50 +0000
Subject: #19236 [Opn]: Need $php_errorLineNumber $php_errorScript in addition to $php_errormsg
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18453@lists.php.net to get a copy of this message
 ID:               19236
 Updated by:       wez@php.net
 Reported By:      php-bugs@ketan.org
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: FreeBSD
 PHP Version:      4.2.2
 New Comment:

That's too much magic; you can do this yourself using
set_error_handler and having your error handler set up
these global vars yourself.


Previous Comments:
------------------------------------------------------------------------

[2002-09-04 16:49:35] php-bugs@ketan.org

When using ini configuration directive track_errors = On, $php_errormsg
contains the last error message.  We need a corresponding variable
$php_errorLineNumber (or whatever) that keeps track of where in the
file the error occurred, and $php_errorScriptName to tell in which file
the error occurred (in case of include()).

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19236&edit=1



Thread (5 messages)

« previous php.bugs (#18453) next »