Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109920 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 99820 invoked from network); 29 Apr 2020 14:50:27 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Apr 2020 14:50:27 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 4D4F21804C2 for ; Wed, 29 Apr 2020 06:23:53 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS12876 195.154.0.0/16 X-Spam-Virus: No X-Envelope-From: Received: from smtp.opensides.be (smtp.fusiondirectory.org [195.154.20.141]) by php-smtp4.php.net (Postfix) with ESMTP for ; Wed, 29 Apr 2020 06:23:52 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by smtp.opensides.be (Postfix) with ESMTP id 9AD9A4C1FDC for ; Wed, 29 Apr 2020 15:23:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at opensides.be Received: from smtp.opensides.be ([127.0.0.1]) by localhost (smtp.opensides.be [127.0.0.1]) (amavisd-new, port 10024) with LMTP id NGekLHwTsA7p for ; Wed, 29 Apr 2020 15:23:48 +0200 (CEST) Received: from mcmic-probook.opensides.be (194.129.16.109.rev.sfr.net [109.16.129.194]) by smtp.opensides.be (Postfix) with ESMTPSA id D080D4C1BAC for ; Wed, 29 Apr 2020 15:23:48 +0200 (CEST) To: internals@lists.php.net Date: Wed, 29 Apr 2020 15:23:47 +0200 Message-ID: <3884830.k3x24Gr3VI@mcmic-probook> Organization: FusionDirectory User-Agent: KMail/5.2.3 (Linux/4.9.0-12-amd64; KDE/5.28.0; x86_64; ; ) In-Reply-To: References: <4063585.LhOdPkFbeG@mcmic-probook> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [PHP-DEV] Renaming PhpAttribute to Attribute From: come.chilliet@fusiondirectory.org (=?ISO-8859-1?Q?C=F4me?= Chilliet) Le mercredi 29 avril 2020, 14:58:02 CEST Nikita Popov a =C3=A9crit : > On Wed, Apr 29, 2020 at 2:51 PM C=C3=B4me Chilliet < > come.chilliet@fusiondirectory.org> wrote: > > Le mardi 28 avril 2020, 18:59:22 CEST Benas IML a =C3=A9crit : > > > Could you provide any examples as to where '\Attribute' is being used= in > > the > > > wild? I haven't seen a single project that has an Attribute class and > > uses the > > > global namespace. > > > > We do use an Attribute class in FusionDirectory: > > https://gitlab.fusiondirectory.org/fusiondirectory/fd/-/blob/1.4-dev/in= clude/simpleplugin/class_Attribute.inc > > > > I=E2=80=99d expect a lot of projects to have an Attribute class, since = there are > > things named attributes in lots of contexts. >=20 > Great! You have discovered a nice opportunity to finally move your code > into the FusionDirectory namespace. >=20 > PHP reserves (de facto if not de jure) the global namespace for it's own > purposes. If you want to place classes in the global namespace, without > prefixing them, that's fine, but please don't complain if there are clash= es. This is a bit harsh, I did not complain, I provided an example of project t= o someone who wrote =C2=ABCould you provide any examples=C2=BB. I can, so I did. =2D-=20 C=C3=B4me Chilliet =46usionDirectory - https://www.fusiondirectory.org