Re: [RFC] [Discussion] Rounding Integers as int

From: 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. If strict_types is not 1, the code currently out there may be passing int to 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.
I'm not sure I understand. All of these functions already take an 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
« previous php.internals (#121169) next »