Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101855 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76065 invoked from network); 12 Feb 2018 21:05:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2018 21:05:51 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.171 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.128.171 mail-wr0-f171.google.com Received: from [209.85.128.171] ([209.85.128.171:37187] helo=mail-wr0-f171.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 09/57-26725-EA1028A5 for ; Mon, 12 Feb 2018 16:05:51 -0500 Received: by mail-wr0-f171.google.com with SMTP id k32so10105365wrk.4 for ; Mon, 12 Feb 2018 13:05:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:user-agent:in-reply-to:references:mime-version :content-transfer-encoding:subject:to:from:message-id; bh=LmClZbU69rlCTnHIECU1gm8rrYlOVm3x6mLgRP9OJyA=; b=K4ficeJxyMhgiaN7uL6l+LOAjpf2faf4c2qylJ7VasD/piFbreRCpAi4KgQOLdJPMb GJZXuXWyFqwmMU+eQxkJHMQbDhaA9Kh1yi0i+hPI9DjyavtoPWPh1UFHWizSmAU9dE8G 5JngypJChNLmCEgezZaESNUVJQHxMdnO6zW9w+pxJTE9xz5F7nzEVHXW9aDRVQjd8VIG QbwEKk/mq34S/aTcaAhFh5+7UJb/c+1pWlH+L8FxXwgi/4ztw8PriLHhT6KZmqwsIC6R zw5Xf5Y1ShYD9jQacQnxtIhTXCJ6YqNcaJPLfHOLPl+wiF+O3+ILjfj3wzXfZP1NSiwS TQQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:user-agent:in-reply-to:references :mime-version:content-transfer-encoding:subject:to:from:message-id; bh=LmClZbU69rlCTnHIECU1gm8rrYlOVm3x6mLgRP9OJyA=; b=oxgIVYGptEC5irDBL+rrBnDgx0WL5Pk+e4YtxMhwJpsTGvG8WW5GEqAqXiS/pA5v/O 26L7Uw1CB2gcJY2Q56EoHDCcNc3cEIkuHqUq2Q5iFECIguepE6Ruw/6rsJLLQ8r3Rc2r LIOCHSJCRmHRsG+ODXmpTzuUzHCvZdXNglfBxFVaHgbxWJJVT5fKmx1paZaG/FVPfnGu ff5PGQ1DhPZJ3DYUVyihLYtr/woMPl4vTABbuSdAt4KaZAvO1tAIuuKWbMQa+FEtQs71 7OqOBdDFMgnjsFlx/9GgX8jV55+V5nngyohCdcmOCvhpsGQFH/4Ubg6mNLgco4oGkHEx JO8w== X-Gm-Message-State: APf1xPCl3bJxxj0JQIYnRMwYlbIc2MZXj8lB+3bpAEhu9rES/h4buFN7 v9lOxhBrbDZHOFtAU5a09SLYrw== X-Google-Smtp-Source: AH8x227mykg/0+KIPHRqXKbse41FhW1nTJbTL1C//lHMw6RGZjNrbizJpfItYT8UwDhBUeT7P/a33Q== X-Received: by 10.223.155.196 with SMTP id e4mr11795629wrc.63.1518469547916; Mon, 12 Feb 2018 13:05:47 -0800 (PST) Received: from ?IPv6:2a00:23c4:4b86:4b00:34b2:3bb:5c7e:2033? ([2a00:23c4:4b86:4b00:34b2:3bb:5c7e:2033]) by smtp.gmail.com with ESMTPSA id 62sm7987135wml.24.2018.02.12.13.05.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Feb 2018 13:05:47 -0800 (PST) Date: Mon, 12 Feb 2018 21:05:45 +0000 User-Agent: K-9 Mail for Android In-Reply-To: References: <5b21571e-722f-43e4-5c9c-4def39447e1e@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: internals@lists.php.net Message-ID: <5F370154-82E6-4451-A344-B48BF21A0208@gmail.com> Subject: Re: [PHP-DEV] Proposal to run all tests with and without strict_types enabled From: rowan.collins@gmail.com (Rowan Collins) On 12 February 2018 05:50:56 GMT+00:00, Pedro Lacerda wrote: >Besides testing, may or may not be valuable expose a `__STRICT_TYPES__` >constant=2E I think adding this to the language would be very controversial, because i= t opens up the ability to undermine the "caller decides" concept of the two= scalar type modes=2E People on this list have openly said that they would = like to force users to call their library from strict mode, and others (mys= elf included) would rather that wasn't possible=2E On the other hand, there= were a handful of cases suggested where such an indicator would be useful = to *emulate* the two modes in functions with more complex signatures=2E For testing purposes, it would presumably be enough for run-tests=2Ephp it= self to expose whether the strict types override was in effect, which would= sidestep the wider issue=2E Regards, --=20 Rowan Collins [IMSoP]