Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88176 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2649 invoked from network); 14 Sep 2015 05:00:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2015 05:00:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:34234] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/60-30391-16456F55 for ; Mon, 14 Sep 2015 01:00:17 -0400 Received: by obbda8 with SMTP id da8so99964907obb.1 for ; Sun, 13 Sep 2015 22:00:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=z8Je6hvl/cIZuwcGvhHzUvvUxOpdJQ2EsarStPAizyk=; b=f5o1kJQFaRAjG0ov62diP0LsRa0/Bg0HKF+eTGEMgMCvNw3H5fbri66WZbRcS7WbqD sewAnJkJ7g230fs1dT6xodH05FH+cZJmkVoFlYnCsx5l2ZpDAWaYIoBcglWiV4u1iYQN 7vlP709T2wKypZFOq5RatB9WrmuWYZJFN7tU7D7gh/0OK4VcJ2DDC8tRt4KTmRsF4yrW qdjm9YYE+vEC0qFXfmsMR3eqGs6G6+Pmg87wrh8pXhyTPyeUdIkyDhGD/+2yZnxhTRLU VMjwMwCei2RJ1L1cXZEx6vfshGsiRP2CRsmMsg5AG5wIVlNlW6l3BPqvdqQPhet8yynw +0+w== MIME-Version: 1.0 X-Received: by 10.60.178.99 with SMTP id cx3mr9939232oec.50.1442206814068; Sun, 13 Sep 2015 22:00:14 -0700 (PDT) Received: by 10.202.62.197 with HTTP; Sun, 13 Sep 2015 22:00:13 -0700 (PDT) Received: by 10.202.62.197 with HTTP; Sun, 13 Sep 2015 22:00:13 -0700 (PDT) In-Reply-To: <55F5700C.1030204@php.net> References: <55EE1293.7020404@php.net> <55F4D03D.2050902@php.net> <20150913021414.GA80662@3006.local> <55F5700C.1030204@php.net> Date: Mon, 14 Sep 2015 12:00:13 +0700 Message-ID: To: =?UTF-8?Q?Fran=C3=A7ois_Laupretre?= Cc: Bob Weinand , PHP internals , Sean DuBois Content-Type: multipart/alternative; boundary=089e011843e8d868c3051fadf09b Subject: Re: [PHP-DEV] strict-api - Proposing a tool to check and enforce encapsulation From: pierre.php@gmail.com (Pierre Joye) --089e011843e8d868c3051fadf09b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sep 13, 2015 7:46 PM, "Fran=C3=A7ois Laupretre" wrote= : > > Le 13/09/2015 04:14, Sean DuBois a =C3=A9crit : >> >> That sounds good to me! >> >> That would double build times though, is that going to be a concern? >> This won't hurt development time though, since you would dev in zstrict, >> and then switch to non-zstrict when running/testing? > > > Why would it double build times ? This is an optional tool, developers will run a zstrict build when they want to check their code against API 'best practices'. Some will do it more often than others, but that's their choice. Some ext devs will probably never use it, that's their decision. > The only constraint will be for core developers. If travis runs in zstrict mode, every non-zstrict code will cause it to fail. So, core changes will need to be 'strict'. That's why this decision needs a vote. The more I think about it the more I think it should be part of the code quality analysis process, like static analyzers and the likes. Maybe a llvm plug-in or we'll configured options for existing analyzers (like with VC) Optional build options may not achieve what this proposal does. Except if we enforce it. --089e011843e8d868c3051fadf09b--