Re: Are warnings guaranteed?
| From: | Niels Dossche | Date: | Thu, 14 Dec 2023 19:36:26 +0000 |
| Subject: | Re: Are warnings guaranteed? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-122004@lists.php.net to get a copy of this message | ||
Hi
On 14/12/2023 11:39, petrov.boris.v.mail.ru via internals wrote:
> Is relying on warnings being converted to exceptions by error handler is equivalent to checking
> return value with regards to the set of error conditions covered? If this guarantee is already
> there, please point to me to the relevant documentation page.
>
No. AFAIK there is no such formal requirement.
Concrete example: at least ftp_connect doesn't: https://github.com/php/php-src/issues/9898.
Also I know of some methods in ext/dom that can return false without emitting a warning.
Kind regards
Niels