Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #18658
| Newsgroups | comp.lang.php |
|---|---|
| Date | 2021-06-16 02:39 -0700 |
| References | <s9ski4$42b$2@gioia.aioe.org> |
| Message-ID | <b10a8527-d102-4656-848c-e8acd16abfcan@googlegroups.com> (permalink) |
| Subject | Re: set_error_handler(): duplicate error |
| From | Ii Ii <ya12983@mail.com> |
I have no idea, why it is like this.
alex kirjutas neljapäev, 10. juuni 2021 kl 12:04:11 UTC+3:
> <?php
> //error_reporting(0);
> set_error_handler(
> static function (int $severity, string $message, string $file, int
> $line): void {
> throw new InternalErrorException($message, 0, $severity, $file,
> $line);
> }
> );
>
> xxx();
>
> Output:
>
> Fatal error: Uncaught Error: Call to undefined function xxx() in
> /tmp/tmp.Ie1UVhkWcT/test.php on line 9
>
> Error: Call to undefined function xxx() in /tmp/tmp.Ie1UVhkWcT/test.php
> on line 9
>
> Call Stack:
> 0.0001 392928 1. {main}() /tmp/tmp.Ie1UVhkWcT/test.php:0
>
> Why error message showing is duplicate?
> Furthermore, if uncommenting the error_reporting(0) instruction does not
> show any errors.
> is there a good compromise?
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