Re: Is warning guaranteed if it returns false?

Rene Veerman <[email protected]>
Newsgroups gmane.comp.php.general
Message-ID <CACMzB5eAez_=wW1J+wMHek_9DKgcatJYu+FTY3t6cohOAj_m_g@mail.gmail.com>
i recommend you always check the specific return codes for any given
built-in functions, and let the main error handler merely write
errorLogEntries into a database.

Met vriendelijke groet,
  Rene AJM Veerman
  Eigenaar + Algemeen, Technisch & Financieel directeur van
https://nicer.app en gerelateerde websites.
  Owner + CEO, CTO & CFO for https://nicer.app and related websites.
  see also https://facebook.com/rene.veerman.90


On Wed, Dec 13, 2023 at 4:21 PM petrov.boris.v.mail.ru via php-general <
[email protected]> wrote:

> 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?
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.