Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89438 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90812 invoked from network); 26 Nov 2015 01:04:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Nov 2015 01:04:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=anatol.php@belski.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=anatol.php@belski.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain belski.net from 85.214.73.107 cause and error) X-PHP-List-Original-Sender: anatol.php@belski.net X-Host-Fingerprint: 85.214.73.107 klapt.com Received: from [85.214.73.107] ([85.214.73.107:48042] helo=h1123647.serverkompetenz.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/82-05516-F8A56565 for ; Wed, 25 Nov 2015 20:04:16 -0500 Received: from w530phpdev (p579F3B72.dip0.t-ipconnect.de [87.159.59.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by h1123647.serverkompetenz.net (Postfix) with ESMTPSA id C19AD789BA5; Thu, 26 Nov 2015 02:04:11 +0100 (CET) To: "'Andrea Faulds'" , References: <56547DFE.3080407@php.net> <565496FA.2010604@gmail.com> <84.DA.57156.C6B94565@pb1.pair.com> <56549E24.7030902@gmail.com> <046601d12769$9801d000$c8057000$@belski.net> <065801d127d9$10689190$3139b4b0$@belski.net> <38.02.05516.27846565@pb1.pair.com> In-Reply-To: <38.02.05516.27846565@pb1.pair.com> Date: Thu, 26 Nov 2015 02:04:07 +0100 Message-ID: <067e01d127e6$5c8cfcc0$15a6f640$@belski.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQKNMi52zUhR4hJtiipMheRU20Tb4AIBj6dBArDsJjcBHkArxwFRSYqyAUwvRLcCY2rtoQIxG/7SApKdFv+cuLaywA== Content-Language: en-us Subject: RE: [PHP-DEV] Re: Scalar Type Declaration Syntax Weirdness From: anatol.php@belski.net ("Anatol Belski") Hi Andrea, > -----Original Message----- > From: Andrea Faulds [mailto:ajf@ajf.me] > Sent: Thursday, November 26, 2015 12:47 AM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] Re: Scalar Type Declaration Syntax Weirdness >=20 > Hi Anatol, >=20 > Anatol Belski wrote: > >> > >> It may not be documented, but that doesn't put it outside the scope = of BC. > >> People will unintentionally rely on bugs. > >> > > What is the reason to use \int if "class \int{}" is prohibited? A = typo :) ? >=20 > It might be used deliberately since some IDEs (PHPStorm in particular) = can't > handle PHP 7's scalar type hints properly in namespaces yet. >=20 Hm, but then it's a bug in PHPStorm for PHP7 support, not in PHP? = Particularly I've found this amusing thread = https://devnet.jetbrains.com/message/5507875 . Even PHPStorm would = insert \int, it'll then complain that there's no such class, and it'll = complain about the doc blocks, and passing int instead of \int object. = So an IDE will really need to be PHP 7 compatible. Also, the basic situation is even worse, any code ported to PHP7 and = using type hints is potentially already broken. With this patch = available on the day zero, those codes won't work. We know that this fix = is necessary and can't be avoided, so putting it into somewhere after = day zero - the broken PHP codes will work with .0 and there will be a = gap to fix them till next PHP release. Regards Anatol=20