Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #18670
| From | alex <1j9448a02@lnx159sneakemail.com.invalid> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: set_error_handler(): duplicate error |
| Date | 2021-06-22 16:10 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <sasr13$1n9p$1@gioia.aioe.org> (permalink) |
| References | (1 earlier) <iiu6nlForanU1@mid.individual.net> <sai4vp$11n3$1@gioia.aioe.org> <ij8kteFp5ocU1@mid.individual.net> <saq9ua$1j8h$1@gioia.aioe.org> <ijc1ehFen8qU1@mid.individual.net> |
Il 21/06/21 19:43, Arno Welzel ha scritto:
> alex:
>
>> Il 20/06/21 12:51, Arno Welzel ha scritto:
>>> So this is a local problem specific to your setup.
>>
>> But I would like to understand what it is.
>
> After playing around a bit with the code:
>
> Propably because you have "display_errors = On" in your php.ini.
>
> In my php.ini I have:
>
> display_errors = Off
>
> But when I change this to:
>
> display_errors = On
>
> Tada! Now I also get every error twice:
Exact.
When it is off, no errors are seen.
Bah...
Strange behavior: you can't get the right compromise.
> $ php error-test.php
> PHP Fatal error: Uncaught Error: Call to undefined function xxx() in
> /home/arno/error-test.php:9
> Stack trace:
> #0 {main}
> thrown in /home/arno/error-test.php on line 9
>
> Fatal error: Uncaught Error: Call to undefined function xxx() in
> /home/arno/error-test.php:9
> Stack trace:
> #0 {main}
> thrown in /home/arno/error-test.php on line 9
>
> ---------
>
> And even if set_error_handler() will be used, it stays like this:
>
> ---------
>
> $ php error-test.php
> PHP Fatal error: Uncaught Exception: Error catched: Division by zero in
> /home/arno/error-test.php:4
> Stack trace:
> #0 /home/arno/error-test.php(8): {closure}()
> #1 {main}
> thrown in /home/arno/error-test.php on line 4
>
> Fatal error: Uncaught Exception: Error catched: Division by zero in
> /home/arno/error-test.php:4
> Stack trace:
> #0 /home/arno/error-test.php(8): {closure}()
> #1 {main}
> thrown in /home/arno/error-test.php on line 4
>
> ---------
>
> So my verdict: make sure you have "display_errors = Off" in your php.ini.
>
>
So as already mentioned (if no error handler is implemented) I can't see
any errors :|
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
set_error_handler(): duplicate error alex <1j9448a02@lnx159sneakemail.com.invalid> - 2021-06-10 11:04 +0200
Re: set_error_handler(): duplicate error Ii Ii <ya12983@mail.com> - 2021-06-16 02:39 -0700
Re: set_error_handler(): duplicate error Arno Welzel <usenet@arnowelzel.de> - 2021-06-16 13:48 +0200
Re: set_error_handler(): duplicate error alex <1j9448a02@lnx159sneakemail.com.invalid> - 2021-06-18 14:53 +0200
Re: set_error_handler(): duplicate error Jerry Stuckle <jstucklex@attglobal.net> - 2021-06-18 22:00 -0400
Re: set_error_handler(): duplicate error alex <1j9448a02@lnx159sneakemail.com.invalid> - 2021-06-19 16:41 +0200
Re: set_error_handler(): duplicate error Jerry Stuckle <jstucklex@attglobal.net> - 2021-06-19 19:21 -0400
Re: set_error_handler(): duplicate error Arno Welzel <usenet@arnowelzel.de> - 2021-06-20 13:10 +0200
Re: set_error_handler(): duplicate error Arno Welzel <usenet@arnowelzel.de> - 2021-06-20 13:02 +0200
Re: set_error_handler(): duplicate error Arno Welzel <usenet@arnowelzel.de> - 2021-06-20 12:51 +0200
Re: set_error_handler(): duplicate error alex <1j9448a02@lnx159sneakemail.com.invalid> - 2021-06-21 17:06 +0200
Re: set_error_handler(): duplicate error Arno Welzel <usenet@arnowelzel.de> - 2021-06-21 19:43 +0200
Re: set_error_handler(): duplicate error alex <1j9448a02@lnx159sneakemail.com.invalid> - 2021-06-22 16:10 +0200
Re: set_error_handler(): duplicate error "J.O. Aho" <user@example.net> - 2021-06-22 18:13 +0200
Re: set_error_handler(): duplicate error alex <1j9448a02@lnx159sneakemail.com.invalid> - 2021-06-23 13:35 +0200
Re: set_error_handler(): duplicate error Arno Welzel <usenet@arnowelzel.de> - 2021-06-23 10:24 +0200
csiph-web