Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103675 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 96336 invoked from network); 3 Jan 2019 16:57:22 -0000 Received: from unknown (HELO mail-io1-f48.google.com) (209.85.166.48) by pb1.pair.com with SMTP; 3 Jan 2019 16:57:22 -0000 Received: by mail-io1-f48.google.com with SMTP id b16so7333582ior.1 for ; Thu, 03 Jan 2019 05:30:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Ua01Uk9X5HmtWR57xnwjoIw4DKGcFO1I7HOW8g6rNQM=; b=UM9JyTPrXnexx7iqHLK7WmScVXV6OUkve3KctyayZMawJQk5aBdehGgqwrvyuFxKw9 c3kK8k0wHTJsRxJmpnLmtEucnyOZKPL2/MoONBNOj8gHtDBidrZaX71Aiwqu9mfAAcew BydlQ7l2SGZpPOZruOvLNVmPH0jl47rt4L0boltakv2Bj828pSZl/p2Ib9Jb9MnM5V6H 0gj4zo8dD7m5hFO8xb3MXCLtwqt6kwhzZEIlUjpv5ySTM3DpYp41rSQo5Jc7lGqd0Bjy pG05Gdw0UZqSLIVTHtmDyzicKmyz8LUc2Dw4FZ3djBMT0lrE3B42KfjuMMhegdxRNBCY eUrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Ua01Uk9X5HmtWR57xnwjoIw4DKGcFO1I7HOW8g6rNQM=; b=iCmsnyARbedrKKO0QhpdNbom3cnmp1YMz5zCMbxBlUBCwhKQCqI2d2xOvJobGs/iD6 jymxTcTfg/uGi/z9dG+rqOLux58mQXrIqn43KqAeJ8hh19gInwp8SzqO9f10xrIGoKox x2s/iG5Y0FhZ/NiFEa+44bBZTPT1mCn9lE6eKR3Pw84dcn8R1VUUVidTnb/jNF+p+lHV aPSdASlWeZdq5oCiCmUDwXl9vb28N9jVtsLZZKuOBBjfB34q0v1vX2DDKpP+U/8CKI7z 0G77BlEnDcyONFQ+jNVk9DWrVsK2umvQ5XxJTCyKCGSUZd72oDgNZ+U8cKaZBuHMi8zI alLQ== X-Gm-Message-State: AJcUukfd01abB0CqoAYjKUk6UIRkzvXXJyRXFLWKPPjeg/j400GWevnb DW3pAijTwSUNQByE6mABSMHGYENcuzU0Yln/L4HtiQ== X-Google-Smtp-Source: ALg8bN7DFMjeXp9u0sIszSWom2vdpAlWsPP+y1Zg7Cmh47+O7cbRJlcl3bpAjvSFli7rvSYA9sbfbehH7eFTqnFm6n0= X-Received: by 2002:a5d:8946:: with SMTP id b6mr13848242iot.231.1546522214331; Thu, 03 Jan 2019 05:30:14 -0800 (PST) MIME-Version: 1.0 References: <94f5feb8-6589-3a0a-2849-7679cec1858c@gmx.de> In-Reply-To: Date: Thu, 3 Jan 2019 13:30:02 +0000 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary="00000000000038f9d9057e8dc3a1" Subject: Re: [PHP-DEV] Inconsistent float to string vs. string to floatcasting From: rowan.collins@gmail.com (Rowan Collins) --00000000000038f9d9057e8dc3a1 Content-Type: text/plain; charset="UTF-8" On Thu, 3 Jan 2019 at 09:21, Zeev Suraski wrote: > > I agree, but the real question is how many of those who are explicitly > calling setlocale() are relying on this behavior > It occurs to me that we could ask the opposite question: what *other* reasons do people have for explicitly calling setlocale()? If we can provide alternatives to the majority of use cases, we can put a big fat warning on the setlocale() manual page suggesting that people completely avoid it - more prominent than the current one on thread-safety, mentioning some of the other undesirable side effects, and explicitly recommending alternatives. Obviously, that advice won't be followed over night, but it would at least give ammunition for people to raise PRs against libraries saying "hey, please use this instead of setlocale() because you broke my float conversions". Regards, -- Rowan Collins [IMSoP] --00000000000038f9d9057e8dc3a1--