Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.www.php > #21033
| From | alex <1j9448a02@lnx159sneakemail.com.invalid> |
|---|---|
| Newsgroups | it.comp.www.php |
| Subject | set_error_handler con backtrace |
| Date | 2016-07-08 16:10 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <nloc92$1c1j$1@gioia.aioe.org> (permalink) |
set_error_handler('myErrorHandler');
function myErrorHandler($errno, $errstr, $errfile, $errline)
{
echo $errstr."\n";
}
xxx();
PHP Fatal error: Uncaught Error: Call to undefined function xxx() in
.........
Stack trace:
#0 {main}
thrown in ...
#1 ...
#2 ...
...........
Non ricordavo che $errstr includesse anche il backtrace (stack trace).
A me interessa solo il messaggio d'errore...
Si può escludere il backtrace?
Back to it.comp.www.php | Previous | Next — Next in thread | Find similar | Unroll thread
set_error_handler con backtrace alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-08 16:10 +0200
Re: set_error_handler con backtrace Alessandro Pellizzari <shuriken@amiran.it> - 2016-07-08 15:21 +0100
Re: set_error_handler con backtrace alex <1j9448a02@lnx159sneakemail.com.invalid> - 2016-07-08 17:16 +0200
csiph-web