Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.www.php > #21033 > unrolled thread
| Started by | alex <1j9448a02@lnx159sneakemail.com.invalid> |
|---|---|
| First post | 2016-07-08 16:10 +0200 |
| Last post | 2016-07-08 17:16 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to it.comp.www.php
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
| From | alex <1j9448a02@lnx159sneakemail.com.invalid> |
|---|---|
| Date | 2016-07-08 16:10 +0200 |
| Subject | set_error_handler con backtrace |
| Message-ID | <nloc92$1c1j$1@gioia.aioe.org> |
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?
[toc] | [next] | [standalone]
| From | Alessandro Pellizzari <shuriken@amiran.it> |
|---|---|
| Date | 2016-07-08 15:21 +0100 |
| Message-ID | <du9r72Fta57U1@mid.individual.net> |
| In reply to | #21033 |
On 08/07/2016 15:10, alex wrote: > PHP Fatal error: Uncaught Error: Call to undefined function xxx() in > ......... > Stack trace: > Si può escludere il backtrace? Tronca la stringa al primo a-capo. Bye.
[toc] | [prev] | [next] | [standalone]
| From | alex <1j9448a02@lnx159sneakemail.com.invalid> |
|---|---|
| Date | 2016-07-08 17:16 +0200 |
| Message-ID | <nlog53$1hvv$1@gioia.aioe.org> |
| In reply to | #21034 |
Il 08/07/2016 16:21, Alessandro Pellizzari ha scritto: > On 08/07/2016 15:10, alex wrote: > >> PHP Fatal error: Uncaught Error: Call to undefined function xxx() in >> ......... >> Stack trace: > >> Si può escludere il backtrace? > > Tronca la stringa al primo a-capo. > > Bye. > Sperando che il msg non contenga a sua volta degli a-capo. Non si sa mai.
[toc] | [prev] | [standalone]
Back to top | Article view | it.comp.www.php
csiph-web