Re: [RFC] [Discussion] Rounding Integers as int
| From: | Marc Bennewitz | Date: | Fri, 29 Sep 2023 07:08:42 +0000 |
| Subject: | Re: [RFC] [Discussion] Rounding Integers as int | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-121169@lists.php.net to get a copy of this message | ||
Hi Saki,
On 27.09.23 02:18, Saki Takamachi wrote:
Hi, Marc. There is one additional case to consider. It's backwards compatible. IfI'm not sure I understand. All of these functions already take anstrict_typesis not1, the code currently out there may be passingintto these functions. Therefore, it is better to be aware that such code can have destructive effects, and to consider whether or not to allow it.
int|float and therefore the setting of strict_types is irrelevant here on passing float vs. int.
Regards. Saki
Attachment: [application/pgp-keys] OpenPGP public key OpenPGP_0x3936ABF753BC88CE.asc
Attachment: [application/pgp-signature] OpenPGP digital signature OpenPGP_signature.asc