# Changelog / upgrading notes for promoted warnings

- Thread: https://externals.io/message/107931
- Original archive: https://news-web.php.net/php.internals/107931
- Started by Rowan Tommins on 2019-12-19T20:17:43+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #107931 — Rowan Tommins — 2019-12-19T20:17:43+00:00

URL: https://externals.io/message/107931#107931

Hi all,

Earlier, I was writing an application-specific wrapper around the 
password_hash function, and was surprised that it could return false, 
rather than throwing an error.

I then found this commit to master making it throw errors for PHP 8.0: 
https://github.com/php/php-src/commit/37c11714

That's great! But ... it is a breaking change, and I can't see any note 
in UPGRADING. Is there a running list of the Warnings that have been 
promoted to Errors anywhere, and if not, should we create one before we 
forget?

Regards,

-- 
Rowan Tommins (né Collins)
[IMSoP]

---

## #107933 — G. P. B. — 2019-12-20T00:33:49+00:00

URL: https://externals.io/message/107931#107933 · In reply to: #107931

> Hi all,
>
> Earlier, I was writing an application-specific wrapper around the
> password_hash function, and was surprised that it could return false,
> rather than throwing an error.
>
> I then found this commit to master making it throw errors for PHP 8.0:
> https://github.com/php/php-src/commit/37c11714
>
> That's great! But ... it is a breaking change, and I can't see any note
> in UPGRADING. Is there a running list of the Warnings that have been
> promoted to Errors anywhere, and if not, should we create one before we
> forget?
>
> Regards,
>
> --
> Rowan Tommins (né Collins)
> [IMSoP]
>

As there are a lot more of these promotion, from what I recall, is that a
general upgrading note will be added.
As the promotions cover case which are clear programming/logic errors and
thus shouldn't arise in production code.

An example of a promotion is an invalid flag value (e.g. a mode with fopen
which does not exist) or out of bound values (usually integer value which
need to be greater than zero).

Moreover, I'm not sure it's helpful to have a massive list of functions
where some warnings have been promoted and others not. But this is only my
opinion.

Best regards

George P. Banyard
