Re: Make bcmath functions more strict
| From: | Benjamin Morel | Date: | Fri, 26 Apr 2019 13:10:13 +0000 |
| Subject: | Re: Make bcmath functions more strict | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-105460@lists.php.net to get a copy of this message | ||
> Yes, PHP 8 for BCs and PHP 7.4 for warnings that's what I was trying to
said
FWIW, I don't think anyone will complain about adding a warning to
something that's obviously a bug when it fails.
I'd say go ahead a write an RFC. If you want to have more chances for it to
pass though, I would not change the semantics of the current conversions
from string to decimal (what's considered a valid decimal number and what's
not). I would just propose to add a warning when an argument is converted
to zero because it is *currently* considered malformed.
- Ben