Re: [PHP-DEV] Inconsistent float to string vs. string to floatcasting

2019-01-04 Thread Christoph M. Becker
On 02.01.2019 at 16:51, Zeev Suraski wrote: > If we do end up adding a new INI entry - maybe it can be a tristate - > legacy, legacy+notice, or new. Just a thought. And I wouldn’t commit to > actually removing it at any time by officially deprecating it... I have some doubts that an INI setting

Re: [PHP-DEV] Inconsistent float to string vs. string to floatcasting

2019-01-04 Thread Christoph M. Becker
On 03.01.2019 at 02:19, Stanislav Malyshev wrote: > If this is part of a data pipeline, the difference between 1,500 and > 1.500 can be huge (about 1000 times ;). With luck, there would be unit > tests, so instead of broken bank account we'd have broken unit tests, > but we all know how unit test

[PHP-DEV] Re: Inconsistent float to string vs. string to float casting

2019-01-04 Thread Christoph M. Becker
On 26.12.2018 at 16:47, Christoph M. Becker wrote: > Regarding the decimal separator (aka. decimal point), the behavior of > casting float to string is inconsistent with casting string to float. > While the former regards the current locale, the latter always expects a > decimal point regardless o

[PHP-DEV] Re: [RFC][Vote] Covariant Returns and Contravariant Parameters

2019-01-04 Thread Levi Morrison
On Thu, Jan 3, 2019 at 8:28 AM Levi Morrison wrote: > > On Wed, Dec 19, 2018 at 4:10 PM Levi Morrison wrote: > > > > Thank you for the feedback and discussion on the [Covariant Returns > > and Contravariant Parameters RFC][1]. > > > > I have opened [voting on this RFC][2]. Given that this is a co