Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117243 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 3368 invoked from network); 3 Mar 2022 16:41:28 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 3 Mar 2022 16:41:28 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A9025180381 for ; Thu, 3 Mar 2022 10:03:12 -0800 (PST) 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,DKIM_SIGNED, DKIM_VALID,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-qt1-f179.google.com (mail-qt1-f179.google.com [209.85.160.179]) (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 ; Thu, 3 Mar 2022 10:03:12 -0800 (PST) Received: by mail-qt1-f179.google.com with SMTP id a1so5257681qta.13 for ; Thu, 03 Mar 2022 10:03:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ufsm-br.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=u2nveiUBwlUC+7NlNfPLTWqS7hjyAcOwy/XL+fx6tdw=; b=SICugUnmyl59A/dHCJ7RDEpwZxiqd1S8uhfs/rHhgXtiXeJuJRFo+wgbXlT35kS0SE Dfxq4pbuwGDEsClFtIIGeyhRxAWs65WHrsJQp1HGud6JAFWRkOEnuHfQyyKvlJgV9X9w RiUGYMlBT4TTkKwxpMfOh5bPJUWgBrG8angVjRs8mTDXRhc8ESZ8QMt7ZJLbCzacb+jX SnpVd1KnlHK+lQtqB5u+Jy7CKaWf8wuFTYiGTCTXdgJajqi45+JW0z+uHyhPxTmugwN1 Ys9Jxef7IOH796cziiaHmj0Ea8IhhImCnXv/Iy7ywq6HY6MrOYdxFINE+6Zjys7ho2DI 9PWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=u2nveiUBwlUC+7NlNfPLTWqS7hjyAcOwy/XL+fx6tdw=; b=P6Y/pxdZ/cXVCIKmXUAieMMX0QmSN+m2Nglab0GeE6fqo9/L2Iqp9aUlNankkRXTeN OIE9eYLeC33k8vM7yTrt/WhemIZpXM0GSUdR/8E8umkvxKkea2Xe8oUplHyltTD+iNeO 0HUuhHivy8Dbml1jutMZNPxLFzy++G+N2rsIcGkvYDIqYh7UUpry9CWfdfMdiCxHYUFC 8Wy3IPQDaPHoYfxwcKEyF94Sq7xt5Cty8m+KIqIggqWVcrZ+QqjnW2i3pC7QYCf1FYlL eJSMaq50h5AqqBG4bER1JFI4RcOa9druymF6+Zk1Kpa8PLeLM7YGkOdCb8+p1GmLvRKF 0DkA== X-Gm-Message-State: AOAM533z0LZ0u4Smuf1KQb/WMGs20KDT18CCJzVpl7I9m0js4EoYI19O uyfc2XrC/cDQYJX1RTc1FEGQpzYncNqA/EDzyxXz36l18TVpFw== X-Google-Smtp-Source: ABdhPJygc/5GlcDrBNRYH7nO5xXjn5TDqiVCzkmZiwPW9rVj/kXZlsgvxTySygKJl5TDjOKlTVp/nnqTgtL/CLSMVW0= X-Received: by 2002:ac8:7d41:0:b0:2de:6fef:84a4 with SMTP id h1-20020ac87d41000000b002de6fef84a4mr28163555qtb.573.1646330591289; Thu, 03 Mar 2022 10:03:11 -0800 (PST) MIME-Version: 1.0 References: <4c3537fd-5d55-4485-a115-b417950a82b9@www.fastmail.com> In-Reply-To: <4c3537fd-5d55-4485-a115-b417950a82b9@www.fastmail.com> Date: Thu, 3 Mar 2022 15:03:00 -0300 Message-ID: To: Larry Garfield Cc: php internals Content-Type: multipart/alternative; boundary="00000000000013dfcf05d95436d8" Subject: Re: [PHP-DEV] Interface for reflection entities who implements getAttributes method From: daniel.muccillo@ufsm.br (DANIEL VARGAS MUCCILLO) --00000000000013dfcf05d95436d8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > I have been considering a "clean up reflection's class hierarchy" RFC > myself; things like getName() are also ubiquitous, but AFAICT is not > actually in a common type definition anywhere. > I think a single RFC to clean up all the bits is probably the place to > start. If any particular part of it ends up being controversial we can > consider splitting it off then. Sounds good to me. I'll work on something along those lines and Shoot me an email off list sometime in March as a reminder and let's see > what we can figure out. :-) Or stop by the room 11 chat room. > get in touch with you sometime after mid of this month! Em qua., 2 de mar. de 2022 =C3=A0s 00:35, Larry Garfield escreveu: > On Tue, Mar 1, 2022, at 2:02 PM, DANIEL VARGAS MUCCILLO wrote: > >> > >> I *think* all Reflector children support attributes, so it may not > need a > >> separate interface. > > > > > > ReflectionZendExtension and ReflectionExtension are currently the only > ones > > who implement Reflector but don't support attributes. > > > > > >> However, the entire Reflection class hierarchy is a mess and needs a > >> number of additional interfaces added to it generally. It makes sense > to > >> overhaul it holistically to make sure it all fits together. > >> > > > > Was not aware of other cases, but a quick look led to: > > > > - getExecutingFile() : string and getExecutingLine() : int in > > ReflectionFiber and ReflectionGenerator; > > - getDocComment() : string|false in ReflectionClass, > > ReflectionClassConstant, ReflectionFunctionAbastract and > ReflectionProperty; > > - getName(), getNameSpaceName() and getModifiers() in some cases (no= t > > always together). > > > > Should it be the case to expand the scope to handle these in the same > > proposal or maybe create a Meta RFC and discuss each on their own? > > I have been considering a "clean up reflection's class hierarchy" RFC > myself; things like getName() are also ubiquitous, but AFAICT is not > actually in a common type definition anywhere. > > I think a single RFC to clean up all the bits is probably the place to > start. If any particular part of it ends up being controversial we can > consider splitting it off then. > > >> I have zero availability until mid-March, but I'm open to helping at > that > >> point. > > > > > > Thanks for your return on that, I'll try to run at least a little on my > own > > foot until there, so I can be less of a burden! > > Shoot me an email off list sometime in March as a reminder and let's see > what we can figure out. :-) Or stop by the room 11 chat room. > > --Larry Garfield > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php > > --=20 Daniel Vargas Muccillo --00000000000013dfcf05d95436d8--