Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:112999 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 62297 invoked from network); 26 Jan 2021 19:23:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Jan 2021 19:23:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EBCCF1804D1 for ; Tue, 26 Jan 2021 11:05:23 -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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 ; Tue, 26 Jan 2021 11:05:20 -0800 (PST) Received: by mail-ed1-f41.google.com with SMTP id b21so21060438edy.6 for ; Tue, 26 Jan 2021 11:05:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=h1ygqDuWmF2yA8DAR3KpccC9hnqFZ5kvyWN5NbgdX3Q=; b=bR6BwmxRIgGzjT5MKwJbj1okfstZNt9SYAGPyyFd4wt1NjJDwbCbw7u0mA6l34lVAW sJvEO03LCyhjawyPrH3oKP34y3sNjpEjMbRm4RamCm4yakD4NguSHUdf8Hf/kpMygyuT namc6do6ouFjo6CN+cfapIrFv5e/5m3gJ4QBX3OWERtN9n8pfeFy9u3jWhdAHjTlS187 +CJBecNSEynpyXU/XGHOzElG4of+xCEZXB3v2pMIb8F7kjRZhPgZXeBUSoPVd0JZHJvp fxqO4inIb7Z54/1scjx+rkG3m0LSBNyBwNcfWC7gqNNrB4WCO3kTBZ4NJR6xit6DH3Cj 6YUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=h1ygqDuWmF2yA8DAR3KpccC9hnqFZ5kvyWN5NbgdX3Q=; b=IlJiljFhW4cv4jzOPfv/o/ZrVuGM6WX4uOTXkE7Roq8VxklWA7Ipw9tFCzjeVRlhcS d1fnnqgoOuqDTR3QRuLb/uoFXQLfD9vbvk0HQ9py7G/nqSwZZMb/3VuNLespZAoxiflR qPtpWgfjCWHr8HH4OYuYUexzQx7XX2VT8Xsx0N+SubDs9UhJUih43IfEr+qgXBNBqcdG m46AbeHGXxyn0ys8L45be0CW0W/+T2bswBkAW6l1Fq7JB97uFDJZZ+2sBHKO405frjaR RKCHI5kbAyU+SRyw6jR9LyrrN/pYdbuXOQq72VmEhg6gi37t1axdxKc7o0UB7lmpF6ai tQww== X-Gm-Message-State: AOAM532n9l2H8khuOtyIgvENVCQvZEN7fd75v/Qk3lamXd3R2tZUr5Hg +Tc1ZRVW6fH2sjBjwxSo+inqvKSBG3k8J4ey X-Google-Smtp-Source: ABdhPJy5xigxUHoQ60Q5nGqDvJEiEUAwSRN6AfC6zFka+h/3VIWDyiuMtUF0ko/fz6IkPUlhDjFn0g== X-Received: by 2002:aa7:dd49:: with SMTP id o9mr5664302edw.14.1611687918818; Tue, 26 Jan 2021 11:05:18 -0800 (PST) Received: from ?IPv6:2a04:4540:6b1d:6100:9c2a:5a0e:6e48:7603? ([2a04:4540:6b1d:6100:9c2a:5a0e:6e48:7603]) by smtp.googlemail.com with ESMTPSA id s13sm3518317edi.92.2021.01.26.11.05.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Jan 2021 11:05:17 -0800 (PST) To: PHP Developers Mailing List Message-ID: <26f35071-8427-ce48-cca0-f9cd28ad9f0b@gmail.com> Date: Tue, 26 Jan 2021 20:05:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Attributes in ReflectionMethod::__toString From: markus.fasselt@gmail.com (Markus Fasselt) Hi internals, while debugging a cache issue in Symfony (https://github.com/symfony/symfony/issues/39988), I noticed that e.g. ReflectionMethod::__toString() does not give any information about attributes on that method. The same applies to ReflectionClass and ReflectionProperty. But docblock comments are included in the string representation of ReflectionClass and ReflectionMethods (but not ReflectionProperty?). https://3v4l.org/U1vT0 I also noticed that ReflectionAttribute does not have a __toString() method and cannot be casted to string, while other Reflection classes can be casted to string. I do not know much about the PHP internals, but this looks quite inconsistent for me. Is there a reason for this or are attributes missing in the string representations? Kind regards, Markus