Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89386 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22765 invoked from network); 24 Nov 2015 16:57:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Nov 2015 16:57:39 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.44 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.44 mail-pa0-f44.google.com Received: from [209.85.220.44] ([209.85.220.44:32835] helo=mail-pa0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 51/2A-57156-20794565 for ; Tue, 24 Nov 2015 11:57:39 -0500 Received: by pabfh17 with SMTP id fh17so28446665pab.0 for ; Tue, 24 Nov 2015 08:57:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=WhTc2N9yTsLSNCDTgHz3kpQQb75mAGR8CEszZompmeo=; b=JjTf3qyX8F1WywhMzo5hYTADOUPH4U40wvwJflyNXnpU0rooNo6W7PjJ71Mm4V3A8w IqqDO0B1Avq9SPOdwoudcUv+7QKXlIyc2yqTiEhTxKEQB79HhvhjsZ5yiiN/OcRiHuc9 wJ9ttTKvwzpyLQ2Rb2O3XYTmqr6lQvV8iyas276rj2w9A5rcHxlEG3OAP1kqq+ApT+af /sCGoVOwOTP2UWK/f/YffUSk+HpUeIK2Kv99HBmT7fZYtgwiuTEft9+BaaJOyoXQUPpV DuoYQVPHI8/qdv3YLdOSks2tKjvCbL+C9Oxw9MxhP7W0ZEPYrqxpPYDMDBW7XwAMYHDe P9Vg== X-Received: by 10.66.100.166 with SMTP id ez6mr44324474pab.49.1448384253060; Tue, 24 Nov 2015 08:57:33 -0800 (PST) Received: from ?IPv6:2602:304:cdc2:e5f0:39d4:5301:177b:b716? ([2602:304:cdc2:e5f0:39d4:5301:177b:b716]) by smtp.gmail.com with ESMTPSA id 132sm15357986pfc.63.2015.11.24.08.57.31 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Nov 2015 08:57:32 -0800 (PST) To: Andrea Faulds , internals@lists.php.net References: <56547DFE.3080407@php.net> X-Enigmail-Draft-Status: N1110 Message-ID: <565496FA.2010604@gmail.com> Date: Tue, 24 Nov 2015 08:57:30 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Re: Scalar Type Declaration Syntax Weirdness From: smalyshev@gmail.com (Stanislav Malyshev) Hi! >> > function a(\int $i) {} >> >> Is it intentional that the \ in front of the "int" is allowed? IMHO, >> this >> confusing notation must not be allowed. > > This is weird and I'd consider it a bug. You can't do \array or > \callable, and if I saw \int, I'd think it meant a class of that name > rather than a scalar type. I would assume \int means class named "int", as opposed to "int" type. But banning it may be ok too. > > Can this be fixed for 7.0.0? I don't think this would be a good idea. We're in the final stretch of release cycle, and should not do any non-urgent fixes. This does not look urgent. It can wait for 7.0.1. -- Stas Malyshev smalyshev@gmail.com