Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90988 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7882 invoked from network); 28 Jan 2016 07:03:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2016 07:03:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=mike.php.net@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mike.php.net@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.48 as permitted sender) X-PHP-List-Original-Sender: mike.php.net@gmail.com X-Host-Fingerprint: 74.125.82.48 mail-wm0-f48.google.com Received: from [74.125.82.48] ([74.125.82.48:38052] helo=mail-wm0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/A1-19998-14DB9A65 for ; Thu, 28 Jan 2016 02:03:30 -0500 Received: by mail-wm0-f48.google.com with SMTP id p63so10860572wmp.1 for ; Wed, 27 Jan 2016 23:03:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=rNdAB20yC7Epj/Cw0XmTx3u9cwlELQ7efzW9itl68xQ=; b=eCAJhl+Ec9mjzBWZ4hxWo/2wHguJLM7oe8HiNwEdbI4lXRDQNmRqfA/nOyBWqtIv+9 d8IgruFZPVY84TudCV/Ny3pISrrcRdzZSK8/LCSJxiieDP5NjpQyAiWZ4HMylWIm0naH fm31lj71xtRpLL2AC+eN1GveO2BN2HA9L4f2wSyM/gS7b2cLEqhBujiqxFtarZWGsJbR pcf2YSwjllLjaiWSf2fyAvx9zQBM7jW8FSHA47DoDKLXYGCELpt7UoazvI9HrBhAJnYa S1SgGqGnoFYSW+QQ5ecARaq+RcjSa0RDJps1vMvvaL0diIJYMJavsA0ZE1nl/b12v5A8 7y6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=rNdAB20yC7Epj/Cw0XmTx3u9cwlELQ7efzW9itl68xQ=; b=dA++thF36ErF1/FLKUas8OpGEZS+8x9z2hFNBxupwZ5q+hm8Gk99lJdo6m9n2WNbFr XbIIg4ekq+EOjsHcNed/xiG2RJ6bbLcRA0DuDiWXq4bVr/eSFKpgF5q25SnSSEmXCNtM qJs/lmcsbmFbpZb5qIri5E3hpNicCbfk8F42MU6zapDOeDA95wAiYGOFV34aRoxW1OGu 3sYVN49uPzBUEhfuDHIs2ugjctTzaCn8cDKWne2z8szIBU2NPBJpa9kLDKshj1Dylpss 8TONeCKdts8ZHe71OBJvRmR+d/2oC4PdsVzkUCEharu8Z1KYmeXmWaAy2/lge1/EiA6f 771g== X-Gm-Message-State: AG10YOQd+p8cqnIYFs9/9t+rT4A8un2hOTUycMqXzwezmCylDxGT0gxGwngFyEtrswpfbg== X-Received: by 10.28.229.201 with SMTP id c192mr1263897wmh.103.1453964606375; Wed, 27 Jan 2016 23:03:26 -0800 (PST) Received: from [192.168.2.121] (89-104-28-113.customer.bnet.at. [89.104.28.113]) by smtp.googlemail.com with ESMTPSA id x6sm9562070wje.38.2016.01.27.23.03.25 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 27 Jan 2016 23:03:25 -0800 (PST) Sender: Michael Wallner To: Levi Morrison , Andrea Faulds References: <55.70.56702.FD2E7A65@pb1.pair.com> Cc: internals Message-ID: <56A9BD3C.5090409@php.net> Date: Thu, 28 Jan 2016 08:03:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: [RFC] Warn about invalid strings in arithmetic (moving back todiscussion) From: mike@php.net (Michael Wallner) On 27/01/16 01:54, Levi Morrison wrote: > I personally consider the new changes with fractional and scientific > notation strings and integer operators to be the more important > change. Thanks to everyone who identified and fixed this > inconsistency. > > Does anyone have any good ideas on how to prevent strtol and strtod > from being re-introduced to the repository? I could potentially see > this happening. > Pardon? There's no need to "ban" any standard functions, just make sure you always use is_numeric_string when dealing with userland. It's perfectly fine to use strtol, when you know what you're doing. Unfortunately, it seems, we don't have a suitable place to put that notice. Kudos to everyone discovering that. -- Regards, Mike