Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82233 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62653 invoked from network); 9 Feb 2015 08:02:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Feb 2015 08:02:42 -0000 Authentication-Results: pb1.pair.com header.from=arvids.godjuks@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=arvids.godjuks@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.43 as permitted sender) X-PHP-List-Original-Sender: arvids.godjuks@gmail.com X-Host-Fingerprint: 209.85.218.43 mail-oi0-f43.google.com Received: from [209.85.218.43] ([209.85.218.43:60476] helo=mail-oi0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2B/22-50460-0A968D45 for ; Mon, 09 Feb 2015 03:02:41 -0500 Received: by mail-oi0-f43.google.com with SMTP id z81so21289964oif.2 for ; Mon, 09 Feb 2015 00:02:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=aEiTxtr9bE16LGRLIoiXRdJ/LMVN74L6Thjvl1zEYNg=; b=aQKXSFWnLZdgK/oAPv/hFVpaKfYFafBN5swJgzkvMaU+YrH3Ni9Wb4HbOJ+TrNX/8H QrrSCyROP1EPeuNbP8lkJy+cfmYKDFSR6hgDG93S7viXzX+RtTxrAi80hX9JJpkPmYgF pvD9sYuVGQSh3ktoqYVs+gRPWXR2wLaxoVKEF2Rkoka4jpplCeXx50Ohe3LoJBZpboSe RLoIcAjXtcnd2OOavMb0C4uhMlabnZ3ykF9njMfkFTex6PxQq4GYcYULPuqUtcGjk6I2 fa4kOxhi9CyF05cd9JByTMqlYEXRFnCMdw065JWGLT7Q0Pfm+tK7M12igr1WQtTobedR P/GA== X-Received: by 10.202.51.137 with SMTP id z131mr10243713oiz.10.1423468958125; Mon, 09 Feb 2015 00:02:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.60.14.5 with HTTP; Mon, 9 Feb 2015 00:02:17 -0800 (PST) In-Reply-To: References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> <54D5659D.5000602@php.net> <54D7A6DB.3050209@seld.be> <74136F1E-817F-4A33-8228-B47045DD65C3@ajf.me> <54D7EB44.9010005@gmail.com> Date: Mon, 9 Feb 2015 10:02:17 +0200 Message-ID: To: Andrea Faulds Cc: Zeev Suraski , smalyshev@gmail.com, PHP internals Content-Type: multipart/alternative; boundary=001a113cd3da9914a7050ea33190 Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: arvids.godjuks@gmail.com (Arvids Godjuks) --001a113cd3da9914a7050ea33190 Content-Type: text/plain; charset=UTF-8 I actually have a question, that Ferenc touched on, but it never got any discussion. How, actually, the declare will work with concatenated PHP files? It's quite a common practice to put the files into packages, that require minimal amounts of includes for performance reasons. Declare is required to be a the top of a file as a first statement. So, if I have like 10 packages from composer written in different styles, how should I actually combine them? Stripping the declare from each file and putting a single declare with the type hint level I want? What will happen if a library is written for weak type hints ends up in strict type hint mode? Or the other way around? Isn't it gonna be a mess? Thanks, Arvids. --001a113cd3da9914a7050ea33190--