Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:109918 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 93999 invoked from network); 29 Apr 2020 14:24:58 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 29 Apr 2020 14:24:58 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2AC781804C7 for ; Wed, 29 Apr 2020 05:58:22 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 29 Apr 2020 05:58:21 -0700 (PDT) Received: by mail-lf1-f52.google.com with SMTP id b24so946030lfp.7 for ; Wed, 29 Apr 2020 05:58:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gryhZKkpXS8gIh1gvfnxhmLAWkZqeQm+nAcwkzYseEA=; b=PrTdLeqVk+sjkvHLtKj4/idHSb70DHQnLe9ZVuib+O2kbHa2rbBBkI1YiFpVO6+VN4 PGLkWdR+JzowEUNCLk3V0Sbf03WOB6puoowbi/fR5nnsecA+XQC3yB7Rjhr38UUQEOo8 6ekNaJl4ewIQVBt/7bRdveJoTsHqtqv60e3gOH279SVfdKI++o0F7Qd/Cl3uDmpITKMA H++Q9D41o63gRUloS6+Elo+TvAWWAtvKWOXOLEHSMrphBofRNzrOWLH0NvVPj9JY9275 9qoUGrjcPuCurg1uK+1pjkN0JXWN0ptMUJzng7m2dCw81desxDpYDwIXWwSjHNeW+R8l aXPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gryhZKkpXS8gIh1gvfnxhmLAWkZqeQm+nAcwkzYseEA=; b=rjQMghNLdW67D++Dnil3bwC/RxlNY5OylSuy5q8sJBwr5W+svKfXMmzh0EOgnd/r6g W4v1GCyFYcHiHcRhq2z74x9NYWgSy1kPsw9q7qon0lQYQK/mxfsycOYcmxJi286OR8k+ 7XQve9xEgRVab9ugn83Yg+dC7f+pcH1FMH6WHqYlRcoWknE45r0DBV0JCnnm11KxE9Ju FtluYTSOeD7fiBGfcKLDIXFSMa4z1rKiCzfR6v5qcsmmeBiSWNn7BGtVYkLwXC1xwgJc 1Yl0fFDTN687I7P0jN7oj2DhYsAv9TmUeK8b0UodXk4WPMja2eWw8C6v6RZxMF1i8OIL B4vw== X-Gm-Message-State: AGi0PuaixXkkHDm4QxAZ3TGnVe2Dtkihm8OrHWvtFO7TfgxK/5VNeqP6 NRocPJm0ltuDwjzdau2KUmGsSdXvpOsdzS7xt5TovnO2 X-Google-Smtp-Source: APiQypL+58b9ZkbZabC4/+fUS81iKgz2eBoj3w2LhFmA0FuEjqdJuN/ppJ8k/HvcX1+kfE1j6SGjdm53m7NPcg/MviQ= X-Received: by 2002:a05:6512:10cd:: with SMTP id k13mr22749621lfg.173.1588165099541; Wed, 29 Apr 2020 05:58:19 -0700 (PDT) MIME-Version: 1.0 References: <4063585.LhOdPkFbeG@mcmic-probook> In-Reply-To: <4063585.LhOdPkFbeG@mcmic-probook> Date: Wed, 29 Apr 2020 14:58:02 +0200 Message-ID: To: =?UTF-8?Q?C=C3=B4me_Chilliet?= Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000009a585805a46d8054" Subject: Re: [PHP-DEV] Renaming PhpAttribute to Attribute From: nikita.ppv@gmail.com (Nikita Popov) --0000000000009a585805a46d8054 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 i= n > 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/incl= ude/simpleplugin/class_Attribute.inc > > I=E2=80=99d expect a lot of projects to have an Attribute class, since th= ere are > things named attributes in lots of contexts. > Great! You have discovered a nice opportunity to finally move your code into the FusionDirectory namespace. 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 clashes= . Nikita --0000000000009a585805a46d8054--