Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71009 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93767 invoked from network); 5 Jan 2014 17:34:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jan 2014 17:34:55 -0000 Authentication-Results: pb1.pair.com header.from=php@golemon.com; sender-id=softfail Authentication-Results: pb1.pair.com smtp.mail=php@golemon.com; spf=softfail; sender-id=softfail Received-SPF: softfail (pb1.pair.com: domain golemon.com does not designate 209.85.192.170 as permitted sender) X-PHP-List-Original-Sender: php@golemon.com X-Host-Fingerprint: 209.85.192.170 mail-pd0-f170.google.com Received: from [209.85.192.170] ([209.85.192.170:60947] helo=mail-pd0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/21-19934-DB799C25 for ; Sun, 05 Jan 2014 12:34:54 -0500 Received: by mail-pd0-f170.google.com with SMTP id g10so17330369pdj.1 for ; Sun, 05 Jan 2014 09:34:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=+CNQyQ4Gsds5+geTmduVaCU/2JbdWMMe/C0UBaHJO+8=; b=JHAXuD1ryl8J6/uxm6qOr4gbI2NGmY7xldSG9hQBJt2vUq3siR/jBpNUeFh5t/1IDE JvG63I3cyRTtmTHQgWUr6/sjhK05xF3UbCMa9+jIbAtzbyP1P18tNVVUo5V8FfMBw7aW z31Eabjg7a5KIL4tlneZbNnV6sKWZnjCpCC/JUFQwIsM/7UoZGfP+C0Ruu2f5B3Af5CT Qko6Mz4QYIR2eScumrTalSlHA1Qzf3NK8EGRn0K7jccwp3iYiep47ZO5DM9k1tlm2jrY NOVI6kdJF7mQIJDSAp5BaTf4S0+MffNi2nGRlkvfKshNSBTrPe4MasxxXHqI8a7SC6IR z10A== X-Gm-Message-State: ALoCoQmOCAfDe0EItOJ08oRbrMNLhaVDQFWI3wetea4lwbr/GvqwLOF2h2lmxWfutnv8Uvj3sdOj MIME-Version: 1.0 X-Received: by 10.68.129.99 with SMTP id nv3mr117296197pbb.40.1388943291102; Sun, 05 Jan 2014 09:34:51 -0800 (PST) Sender: php@golemon.com Received: by 10.70.77.164 with HTTP; Sun, 5 Jan 2014 09:34:51 -0800 (PST) X-Originating-IP: [173.252.71.189] In-Reply-To: References: Date: Sun, 5 Jan 2014 09:34:51 -0800 X-Google-Sender-Auth: M4qQo4Rx6jvXBaL7o1_iQYcMNlA Message-ID: To: Nikita Popov Cc: Yasuo Ohgaki , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [RFC] Floating Point support in GMP extension From: pollita@php.net (Sara Golemon) > * Is there any way to get rid of the locale-dependent behavior of > mpf_set_str? This sounds like it could be a big pain. (Especially given how > gmp floats are not what you use with your average user input, so seems > little useful.) > Not really... libgmp can't be told "don't do that", and unilaterally calling setlocale() is probably a bad idea (as it's not thread local). We could query localeconv() and str_replace the input to normalize '.' -> locale->decimal_point, but that's a bit hacky IMO. Or temporarily change LC_DECIMAL (when not in ZTS mode). Still hacky... -Sara