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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to