Is warning guaranteed if it returns false?
| From: | petrov.boris.v.mail.ru via php-general | Date: | Wed, 13 Dec 2023 15:19:54 +0000 |
| Subject: | Is warning guaranteed if it returns false? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-328330@lists.php.net to get a copy of this message | ||
Is there a formal rule in PHP that any built-in function returning false to signify a failure must also issue a warning?
Or, in other words, is relying on warnings being converted to exceptions by error handler is equivalent to checking return value, thus makes checking return value unnecessary?