Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85962 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17769 invoked from network); 27 Apr 2015 08:15:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Apr 2015 08:15:24 -0000 Authentication-Results: pb1.pair.com header.from=kontakt@beberlei.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=kontakt@beberlei.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain beberlei.de from 74.125.82.49 cause and error) X-PHP-List-Original-Sender: kontakt@beberlei.de X-Host-Fingerprint: 74.125.82.49 mail-wg0-f49.google.com Received: from [74.125.82.49] ([74.125.82.49:35328] helo=mail-wg0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F5/E3-17556-910FD355 for ; Mon, 27 Apr 2015 04:15:24 -0400 Received: by wgyo15 with SMTP id o15so107173983wgy.2 for ; Mon, 27 Apr 2015 01:15:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=WG3Pp8BAh+rKOhqACWCoE7ayJu4iQsGtNB9qHP3VkKs=; b=QdQx2DK0isuYr58bMLLRVWw0MT/rjp+RVRvn2MyGEsn0AkwVzvpT6h3BxI5sSAxNwj x2M6yzR6S0qeYUDIVtVrssAJCrUpEHzE65ozD7b7NkY6/YADOhg6yu7i8fybvd37lFFT arvdJQwMXE58myxODnAm1Khj+prkDORGkXHbeso9IC9pWyNghPKGY46FsqnZc68qqlxl rQX3HBdbSzjQNS7Jp4dWmDZfOtc1Aw8xevkgGqNOBAQaAS/ldic3qTPtXfZPO876lE/Z bV/SLEtehcKrrkJ5Uv6iy5m83RyrBvgdRWTKmWwzUFB7cE34YQ7QHNr105YFY87aDOlg My1Q== X-Gm-Message-State: ALoCoQkN5AKHrvzL1oz7y3ItKEj3gvouEpTwIUxLRBWOkon75UlVWIN7IzAt4djhvqDm+g8fNOlq MIME-Version: 1.0 X-Received: by 10.180.80.105 with SMTP id q9mr18805142wix.52.1430122519330; Mon, 27 Apr 2015 01:15:19 -0700 (PDT) Received: by 10.194.164.233 with HTTP; Mon, 27 Apr 2015 01:15:19 -0700 (PDT) X-Originating-IP: [93.129.105.80] In-Reply-To: <553DBEC4.7000609@gmail.com> References: <553DBEC4.7000609@gmail.com> Date: Mon, 27 Apr 2015 10:15:19 +0200 Message-ID: To: Stanislav Malyshev Cc: Nate Abele , internals Content-Type: multipart/alternative; boundary=f46d04428e3ec018a60514b05879 Subject: Re: [PHP-DEV] Re: [RFC] Reserving More Types in PHP 7 From: kontakt@beberlei.de (Benjamin Eberlei) --f46d04428e3ec018a60514b05879 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Apr 27, 2015 at 6:44 AM, Stanislav Malyshev wrote: > Hi! > > > Well, it looks to me like all the discussion is around preventing > > class and namespace names like =E2=80=9Cstring=E2=80=9D, =E2=80=9Cfloat= =E2=80=9D, etc. Granted, PHP > > class names are case-insensitive, but how hard would it be to reserve > > these in a case-sensitive way? > > With current engine - I'd say it is hard. We can't really say "class > names are case insentitive unless it's "string" or "float" or "boolean" > in which case they are case sensitive". Imagine how code implementing > such logic would look like, not to talk about the inconsistencies... > > > Lithium, CakePHP, and Drupal all have String classes. These aren=E2=80= =99t > > Unfortunately, with scalar types we don't have much choice. I don't see > how scalar types and classes named "string" can coexist. > > > I get that PHP 7 is the big opportunity to break backward > > compatibility, but yeesh, really? It=E2=80=99s like we=E2=80=99re not e= ven trying > > anymore. > > There was a lot of discussion about this topic. Right now, unless > there's a proposal to fix it that works, I don't see what can be done > about it. > It should be possible to write something with PHP Parser detecting all the occurances of "String/string" class usage to at least give a worklog of entries that need to be changed, or maybe generate a patch file that can be applied to the code base after review. > -- > Stas Malyshev > smalyshev@gmail.com > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --f46d04428e3ec018a60514b05879--