Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86811 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33848 invoked from network); 23 Jun 2015 14:12:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jun 2015 14:12:47 -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.220.178 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.220.178 mail-qk0-f178.google.com Received: from [209.85.220.178] ([209.85.220.178:34907] helo=mail-qk0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/52-18293-E5969855 for ; Tue, 23 Jun 2015 10:12:47 -0400 Received: by qkbp125 with SMTP id p125so5367512qkb.2 for ; Tue, 23 Jun 2015 07:12:44 -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=xQMjKvahBHfIQLiNjEUprXvhz6w+NTzzxMyt4Fd6YNA=; b=KosEfLyrza5i1l+sZTEObJQUmeo3x7zxEUmB5hnCWU8THDigb1tLQSCob8YHqMj128 tFFeprLv4wXGRldbTihYPvMTJvAfkXqZT12wiq3LhMZ7UXhroaiBq2DST9uew9/a8vu9 +lFdBXBGoO1Bl3kmXVlbiS8IZ9ptVjVKTddT3zKvV2SmKvgZGKU4L6xiLTphdsAeE1lF 65qGI4yVPLwszv9Cs2VvzwADN8Fkq3timxouEI3i8yghidtvpz6ytPDUt9Qwd9uxf59y 3lwrtCuNoSfWAdUpYjTPk76cfzr6B7Q8KwKTMKbcOY5uXGLyvlkhb8VXJ3pYDoVBPvWE tWDg== MIME-Version: 1.0 X-Received: by 10.55.17.215 with SMTP id 84mr43127150qkr.24.1435068764201; Tue, 23 Jun 2015 07:12:44 -0700 (PDT) Received: by 10.96.37.136 with HTTP; Tue, 23 Jun 2015 07:12:44 -0700 (PDT) Received: by 10.96.37.136 with HTTP; Tue, 23 Jun 2015 07:12:44 -0700 (PDT) In-Reply-To: <5588FADB.4080807@lerdorf.com> References: <5586E5D1.4010901@lerdorf.com> <55870947.4060304@lerdorf.com> <5587334C.2080401@lerdorf.com> <55873676.6050706@gmail.com> <55876B29.90804@lerdorf.com> <55881A72.4090403@lerdorf.com> <5588477E.7050109@lerdorf.com> <5588A02C.4040602@gmail.com> <5588AEFC.1030409@lerdorf.com> <5588D7BF.40209@gmail.com> <5588FADB.4080807@lerdorf.com> Date: Tue, 23 Jun 2015 21:12:44 +0700 Message-ID: To: Rasmus Lerdorf Cc: Nikita Popov , Anatol Belski , Kalle Sommer Nielsen , Dmitry Stogov , Stanislav Malyshev , Bob Weinand , PHP internals Content-Type: multipart/alternative; boundary=001a11474baceb28a105192ffb54 Subject: Re: [PHP-DEV] hasType() for internal function parameters? From: pierre.php@gmail.com (Pierre Joye) --001a11474baceb28a105192ffb54 Content-Type: text/plain; charset=UTF-8 On Jun 23, 2015 1:21 PM, "Rasmus Lerdorf" wrote: > > On 06/22/2015 11:51 PM, Stanislav Malyshev wrote: > > Hi! > > > >> Is it a BC break against real code though? Fixing tests isn't a > >> big deal. What kind of real code would break by turning calls with > >> the wrong number of args from an error to a warning? > > > > Well, if we move to checking in ZPP only, then some of the errors that > > previously were fatals (like iterator_array("")) would now become > > warnings. In fact, even type mismatch is a warning for ZPP, which may > > be unexpected, as it was a fatal before, so we may want to change that. > > > > But in some situation, like argument number mismatch, we will have a > > warning, where before it was a fatal error. Which isn't strictly BC > > break but allows some code to pass which previously didn't and may > > hide some bugs. > > > > So we may want to be careful there. > > I suppose so, but this seems like a relatively minor level of BC > breakage especially for a major version bump. I also think it is a rather minor problem. And to minimize the risk to get such things accepted for 7.x I would rather go with 7.0. We have time to catch some of the troubles if any until final. > -Rasmus > > --001a11474baceb28a105192ffb54--