Re: [RFC] [DISCUSSION] Locale-independent float to string cast

From: Date: Thu, 26 Mar 2020 09:54:21 +0000
Subject: Re: [RFC] [DISCUSSION] Locale-independent float to string cast
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-109328@lists.php.net to get a copy of this message
Hi Lynn, Thank you very much for the input! Then we could add a secondary vote to the RFC where an upgrade path was decided upon. The first such path is the one proposed by Christoph: Introduce a temporary ini setting with which a "debug" mode of float to string casting could be enabled. That is, when it's turned on and a casting is affected by locale settings then a warning is emitted. This setting would be removed in a (near) future version of PHP. Although PHP 8.1 would be an unusual candidate to do so, but it *might* be possible if we found a good way to warn people from day 0 that it's just a temporary flag? Maybe by an immediate deprecation? Is there any other idea for a sensible upgrade path? Cheers: Máté

« previous php.internals (#109328) next »