Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83063 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15713 invoked from network); 18 Feb 2015 13:19:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Feb 2015 13:19:19 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.177 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.177 mail-wi0-f177.google.com Received: from [209.85.212.177] ([209.85.212.177:62564] helo=mail-wi0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 5D/01-18888-65194E45 for ; Wed, 18 Feb 2015 08:19:19 -0500 Received: by mail-wi0-f177.google.com with SMTP id bs8so2088389wib.4 for ; Wed, 18 Feb 2015 05:18:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=MZxCfznSlG7LBSqAbHHc/9cb263mJ1k1qfdNxhzkUqM=; b=HXb9bWGwwmwnryGhCuvN1/LgYjqSPsyAk1UFdGFumtmfLtLVFSQdHzN7JYS1oiyjI4 9UcJyXHjv4VUzDlqYD0ngvaEfpDCw1o/cq6mimS2Eqg4YKgq0GS+Xw5+Ge4W9rddW7nK W6tb51+lzdwxhc3hlkW8x/aJM5NlXAj4vm4HnLGkEEgf56TFm6j9p8oxJy8HEbNLlNfn qtCpp2C2pf4bx+5xFqlg2oprIngllihGo40MAWbpLCE5ge9QPM8IpX2MTuYQ3pba9juN 4Bw0jefnAjNdJYLb/nVihFQ0XW4/1YlaOKUKFB4df0fl5MjYprMTC9obmtDcma31lU4C IOZw== X-Received: by 10.180.72.208 with SMTP id f16mr16640wiv.17.1424265539300; Wed, 18 Feb 2015 05:18:59 -0800 (PST) Received: from [192.168.0.172] ([62.189.198.114]) by mx.google.com with ESMTPSA id gz3sm13298705wib.1.2015.02.18.05.18.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Feb 2015 05:18:58 -0800 (PST) Message-ID: <54E49135.60907@gmail.com> Date: Wed, 18 Feb 2015 13:18:45 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Scalar Type Hints v0.4 From: rowan.collins@gmail.com (Rowan Collins) Leigh wrote on 18/02/2015 13:10: >> 3b) Internal impact: Again, behavior remains unchanged unless the >> >ZEND_ARG_INFO struct has been modified to add proper typehints. If >> >typehints have been added, then the more aggressive coersion rules >> >apply during typehint validation. > This leaves us in a state where some functions will have defined types > with their aggressive coersion rules and some will not, and we can't > expect users to remember which set of functions have been updated or > not. > That's precisely the case for every existing user-defined function. Switching to PHP 7 won't suddenly add type hints to every function in every library and every existing bespoke code base, so there is no way to avoid that thought process. > I think the rules need to apply to everything or nothing. The rules will apply to everything in the same way - if a function is typehinted, it behaves like so; if it's not, it behaves the same way it did in PHP 5. Regards, -- Rowan Collins [IMSoP]