Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86804 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99829 invoked from network); 23 Jun 2015 06:21:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jun 2015 06:21:23 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lerdorf.com designates 209.85.192.43 as permitted sender) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.192.43 mail-qg0-f43.google.com Received: from [209.85.192.43] ([209.85.192.43:33519] helo=mail-qg0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AE/30-30249-2EAF8855 for ; Tue, 23 Jun 2015 02:21:23 -0400 Received: by qged89 with SMTP id d89so59447qge.0 for ; Mon, 22 Jun 2015 23:21:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=gsLhzIJ5GQrdc4scYc4TExyAeC5CpgO5Hm0Q9GXHXqg=; b=XGkuDM9VMHl+y9f6UD4pHVqtaW7PDPWwQPDmP/u6KOLP8jH20mlat+oQNPxZyLLawJ +H5HPpsmS1SOG6Q+2N4Ptf34lAJXiXF5a3Nq3JuZu34yRQCWKut3OOcvJECjMuFGzV5Q AvLJQmgRnbR/3tv6RK2zN00+J5yYjBXc5jFhKZUxh70XJg6dng6yX4U7cFi28iukbA6w rWwT6NKnjfu1koG90F4nAKx5zNqQN3rkyg4Ns/JKMpPX6Yx9CkB3A0Svivv4Gxh3LEVJ fzyg7CCzuXc0b0zd928ADN5ak5KWS9pNn2AMs1HJXddfCmtomFmOiCARrttLRJlvGTxN fFsQ== X-Gm-Message-State: ALoCoQl1uBqVhhmmatN7JuzlWK/DbXz/Eym2Mz0WDJoI3s8khK0F76pSVV/V/6otPTVn/kWNjOSH X-Received: by 10.55.15.19 with SMTP id z19mr70183736qkg.41.1435040479392; Mon, 22 Jun 2015 23:21:19 -0700 (PDT) Received: from [192.168.101.253] (rrcs-24-136-125-201.nyc.biz.rr.com. [24.136.125.201]) by mx.google.com with ESMTPSA id m13sm1020635qkh.26.2015.06.22.23.21.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2015 23:21:16 -0700 (PDT) Message-ID: <5588FADB.4080807@lerdorf.com> Date: Tue, 23 Jun 2015 02:21:15 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Stanislav Malyshev , Dmitry Stogov CC: Bob Weinand , Anatol Belski , Kalle Sommer Nielsen , Nikita Popov , PHP internals 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> In-Reply-To: <5588D7BF.40209@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VW3MbWEAK4HNSBxrhJpUQkEjPdRUdOM7x" Subject: Re: [PHP-DEV] hasType() for internal function parameters? From: rasmus@lerdorf.com (Rasmus Lerdorf) --VW3MbWEAK4HNSBxrhJpUQkEjPdRUdOM7x Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 06/22/2015 11:51 PM, Stanislav Malyshev wrote: > Hi! >=20 >> 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? >=20 > 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.= >=20 > 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. >=20 > 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. -Rasmus --VW3MbWEAK4HNSBxrhJpUQkEjPdRUdOM7x Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlWI+tsACgkQlxayKTuqOuDXNgCfWHrNrYkd2fVwPYqG7WcRiUiJ evQAoIG1WU+IE80/132XsxTlbfHJAWqx =kcX9 -----END PGP SIGNATURE----- --VW3MbWEAK4HNSBxrhJpUQkEjPdRUdOM7x--