Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:90989 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15132 invoked from network); 28 Jan 2016 09:25:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2016 09:25:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 157.56.111.136 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 157.56.111.136 mail-bn1bon0136.outbound.protection.outlook.com Received: from [157.56.111.136] ([157.56.111.136:40888] helo=na01-bn1-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/72-19998-69ED9A65 for ; Thu, 28 Jan 2016 04:25:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=JkdQ0b6W/QpUbocdHMNzwjLvEx4StmmDyuesC0eR2AM=; b=fkIDEuevTVtGwigUaEKpAcA1fGN7CnCPYjdkgjeQkddpOnIFGJDAPZqT0jQGWszaNf8FzsxPrf22ZpKf0gH0iRgnARp5K6+FZ7goAbzU5c65lbvsltdg2SP71qbZ72kjxt7PquzlCpTIHLhxVwNnYkazbPGNexju2skSpY2D6XU= Received: from BY2PR02MB298.namprd02.prod.outlook.com (10.141.140.21) by BY2PR02MB297.namprd02.prod.outlook.com (10.141.140.17) with Microsoft SMTP Server (TLS) id 15.1.365.19; Thu, 28 Jan 2016 09:25:37 +0000 Received: from BY2PR02MB298.namprd02.prod.outlook.com ([10.141.140.21]) by BY2PR02MB298.namprd02.prod.outlook.com ([10.141.140.21]) with mapi id 15.01.0365.024; Thu, 28 Jan 2016 09:25:37 +0000 To: Andrea Faulds CC: "internals@lists.php.net" Thread-Topic: [PHP-DEV] Re: [RFC] Warn about invalid strings in arithmetic (moving back todiscussion) Thread-Index: AQHRWIGg/uFyFtZx8EimLakXWnIVaJ8QqOig Date: Thu, 28 Jan 2016 09:25:37 +0000 Message-ID: References: <55.70.56702.FD2E7A65@pb1.pair.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=zeev@zend.com; x-originating-ip: [212.199.177.67] x-microsoft-exchange-diagnostics: 1;BY2PR02MB297;5:QcxlfNyGOX2D3664NT6Yovu4ZSVtxeN6IbRoepl3n+GTzw3HEl9Q4X7Bbh2RzqslaWqZAmHkk/wrQ73BY53bk5pOdL6vmqGFVYtEgCl1VE1rEe3VkIIi+i40VHw3YVXIRcQoRTSeP5EoQIZNeY7mxg==;24:YrfbULMrDZljIwIGp0DfU76hW5kOAdPFzI6PRg5a7iz8Y4XYzc0DTnMYQo14dDt9cmI/jtJpfHL/lhFiOcgSaPs8bdHEFeKD2o1vlq+gN4E= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR02MB297; x-ms-office365-filtering-correlation-id: 49e7f1e6-59d0-4bcf-bab6-08d327c4fb9b x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046);SRVR:BY2PR02MB297;BCL:0;PCL:0;RULEID:;SRVR:BY2PR02MB297; x-forefront-prvs: 083526BF8A x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(24454002)(164054003)(189002)(377454003)(199003)(13464003)(15975445007)(5001960100002)(561944003)(74316001)(3846002)(54356999)(2950100001)(77096005)(1096002)(33656002)(102836003)(2900100001)(11100500001)(19580395003)(97736004)(3280700002)(105586002)(106356001)(110136002)(76576001)(5003600100002)(586003)(106116001)(3470700001)(101416001)(5002640100001)(50986999)(66066001)(189998001)(99286002)(76176999)(5008740100001)(1220700001)(2906002)(87936001)(122556002)(19580405001)(6116002)(10400500002)(4326007)(5004730100002)(81156007)(86362001)(92566002)(40100003)(3660700001);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR02MB297;H:BY2PR02MB298.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: zend.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jan 2016 09:25:37.3669 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB297 Subject: RE: [PHP-DEV] Re: [RFC] Warn about invalid strings in arithmetic (moving back todiscussion) From: zeev@zend.com (Zeev Suraski) > -----Original Message----- > From: Andrea Faulds [mailto:ajf@ajf.me] > Sent: Tuesday, January 26, 2016 11:36 PM > To: internals@lists.php.net > Subject: [PHP-DEV] Re: [RFC] Warn about invalid strings in arithmetic (mo= ving > back todiscussion) >=20 > ...I proof-read my email, but I forgot the most important thing. The link= ! >=20 > https://wiki.php.net/rfc/invalid_strings_in_arithmetic >=20 > Sorry. >=20 > Andrea Faulds wrote: > > Good evening, > > > > I had opened the vote for this RFC, but then I was reminded by a > > discussion in the pull request about a particular unresolved problem I > > had forgotten about. > > > > In order to deal with that issue, I have cancelled the vote and > > expanded the RFC (both in length and scope) to deal with it. > > > > The specific issue is detailed in a new section, "Fractional and > > scientific notation strings with integer operators", but it affects > > other sections as well. > > > > So, the RFC is back under discussion. > > > > Please read it and tell me your thoughts. Andrea, I think this is a good proposal. Slightly worried about the E_NOTICE for t= hings like "5px" + "10px", which I think are probably not uncommon, and wou= ld have been better served by a separate E_STRICT, but that's no longer (pr= actically) available. Either way seems like a good idea. Thanks, Zeev