Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83624 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72711 invoked from network); 23 Feb 2015 23:27:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Feb 2015 23:27:45 -0000 Authentication-Results: pb1.pair.com header.from=zeev@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=zeev@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.213.174 as permitted sender) X-PHP-List-Original-Sender: zeev@zend.com X-Host-Fingerprint: 209.85.213.174 mail-ig0-f174.google.com Received: from [209.85.213.174] ([209.85.213.174:46800] helo=mail-ig0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/52-61054-F67BBE45 for ; Mon, 23 Feb 2015 18:27:44 -0500 Received: by mail-ig0-f174.google.com with SMTP id b16so22554508igk.1 for ; Mon, 23 Feb 2015 15:27:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:references:in-reply-to:mime-version :thread-index:date:message-id:subject:to:cc:content-type; bh=RDxxcaxOGNrVP4KKWd13fk4rS91AFDUPnocIXHRqfY4=; b=Qk/TBx/i5kjfez55vt1+2SENht+cDCqsGjnclS1j15NGtV5Rbn5FlC75yjBgJ6HPUf 3beQmhMfgLiLopsfGrQ8+dFYoMMmS/k6haNP5xatIWVfKW9L9pDd9Mvjy0XnQyiv3952 +ZELxQzXjyalgrKuli2k/jyVCifn6t/8/gp4Qey4Vg3XNhpw9TLIQaUuyw0XlUS84F4q Cq4MWVeF0voHIl6AEcyeEWuBOeeywd4oJKY9rg5pzlYsrdvypxLFl+D866UP27HSLjak l/uQDHPVN7JOj2F1G3WIqVRObz68etYWvBIuRSTWkiT7uNAyCLS8kTqXEHMet/IM2t7s jIbQ== X-Gm-Message-State: ALoCoQlJYRoiSc5nc9d7f06WHiZhfTGaPhRUDO/ZTnynn70wNvGciRfyDtIBhYbwAbSu+Nr5sju51Aq8mLu2/nol5whPphVtDf6/p1rXFBPfY/HJGFC7MGPx9+gwIdsjdcle+Yj6VAChCrVZItXNhmWEp+8zSjT9rA== X-Received: by 10.43.103.8 with SMTP id dg8mr1825210icc.18.1424734060817; Mon, 23 Feb 2015 15:27:40 -0800 (PST) References: <7ef509ef10bb345c792f9d259c7a3fbb@mail.gmail.com> <9aec85c81b49009c6238ff6d8be27cd4@mail.gmail.com> <2dcfd9f4a3f0f9bbf2a13f679359e6ea@mail.gmail.com> <6844321d7134506b1061c5f18a275069@mail.gmail.com> <408f8a8532601425b1c501f333fa6135@mail.gmail.com> In-Reply-To: MIME-Version: 1.0 X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQKcPg+jpyYspJS11b5G1A7RBHpKTgIs5D7XAe7Kvi4CGebHCAJMMZoCAoqDIoMBjxhKrQKJLKIhAM+qbcsB+3/aHQHgRA1gAZjnsAqau7tC0A== Date: Tue, 24 Feb 2015 01:27:40 +0200 Message-ID: <58557dc38e4427681739b9991b5c6ea2@mail.gmail.com> To: Anthony Ferrara Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Subject: RE: [PHP-DEV] Coercive Scalar Type Hints RFC From: zeev@zend.com (Zeev Suraski) > -----Original Message----- > From: Anthony Ferrara [mailto:ircmaxell@gmail.com] > Sent: Tuesday, February 24, 2015 1:12 AM > To: Zeev Suraski > Cc: PHP internals > Subject: Re: [PHP-DEV] Coercive Scalar Type Hints RFC > > Well, I am concerned at this error rate we're seeing that we won't cause > significant perf degradation due to the errors (even with reporting=0). > And > that's not mentioning log files. I'd say that's a feature - excellent motivation to fix these warnings! :) > > Last, we don't yet have an answer to your question about the billions > > of lines of code out there. But as I told to Benjamin, we have every > > intention to try the patch out on some real world apps and see how it > performs. > > > > Let me assure you that if we find that there are hundreds of issues > > trying to get common apps to work, after we tweak the rules - I'll > > either retract the RFC or the very least rethink the internal functions > > part of > it. > > Sounds great. My concern here though is that my instinct says that either > the > rules are going to come out so similar to today's rules as to not be > effective, > or break enough code that it's not worth it. > > Please continue the patch, and let's test iterations. I just don't see > where the > magic line will be (not breaking too much while providing enough benefit > to > please the proponents of strict types). I hope we can find that middle ground, triggering a reasonable number of issues, that will actually gradually push people towards stricter code. But I agree that the jury is still out on whether that's possible. I think diving into some of the found issues is as interesting as counting the number of failures. Are we (with some tweaks) onto a gold mine of potential issues here, or a torrent of noise? Anyway, we'll see. Thanks, Zeev