Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127750 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id ED7A21A00BC for ; Wed, 25 Jun 2025 12:43:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1750855306; bh=w6QZJ1kjAokrKZh+H2MDp042GAmeG11jj4zdTc1j70o=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IsW0ZBBcHtu447yMlGsYalpUH3nxOaTAvSjbVBBEQhzzLZV/eDZQydR6eCaQO/YUg awLkUYzyG+1G5ezGGRj2TssXbATWrJQ06emHOXRtiM/GI7sFkX/3nZyxFe9u/67Dwg 30Zmo5hGSm8AEJfdAsaybMwdbUIBeF/zbpTgCwHNOjohfw5p/4vMHd2XHdr82dDk61 X0aoKZkfE9P0t7Xv7PAJQB92+vff/JwmWRZfZZWIU3ig/M5LXyrUqn4qunSfsJ2awQ /DcFjcvO4I28oNdtx1r9I4q8Ibl/kbL9exZ54Im0kbhPTU8ZyZqZJ4y8m2oFKO8iSZ LfH4q9xDx2r3g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9CCEA18054B for ; Wed, 25 Jun 2025 12:41:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,FREEMAIL_FROM, 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=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from mail-oa1-f53.google.com (mail-oa1-f53.google.com [209.85.160.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 25 Jun 2025 12:41:45 +0000 (UTC) Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-2ef461b9daeso930127fac.2 for ; Wed, 25 Jun 2025 05:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750855420; x=1751460220; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=w6QZJ1kjAokrKZh+H2MDp042GAmeG11jj4zdTc1j70o=; b=llf2RB2Tl/3hGww28pHXfrNrpKtBNafqX0/8WVgJb3N/I/hLmEPQU6fmbnTln+tM34 f0CGaOrkDMKv+BrpHFbhpJMO2OaxSXZkCs1rryQ/ZXK8agbpnUcAG89UrYmsTuJ/prXk NZX8JCHUPjc3M7bEm870PTQ1LsGr+vwPS2I9uhwTffPczSazu+tI544HVvcEOTJJMGhq FqmSUugkLrepsj2u1gvpcWeDb8CIxiiyKNBoSjiUJF9TIrDpHdZdc1Lymn+wa9Euz950 7yeCbPfH2QhopmkMtNHbJHxQRL8ep6FhEJvzIsiZ6FXl7xsAClFJxOODKEQrBt3P0tlc HZsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750855420; x=1751460220; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w6QZJ1kjAokrKZh+H2MDp042GAmeG11jj4zdTc1j70o=; b=N/7x/fIKDXdPjUhiJ30fCAVJia7KGNYaP/jxueMjeh9j7dw7H4JJux9eOP7XtjU9xU 5wIV+pC+eoFxCc+xJIz1IjxKgoy6Ogeh5uYQAMZcaxXrPP6m/6U7trLelOrx0zAy09ze y78c6enIh8CIqZPw7IwHl4YQvNMaDxVCcAj91/2YS6RWe0o95fjRV9Ykgvb9/lcPJSHd VQ/GHGNJttZkZ4MTBmNTyjzh0DbfnO6q86yqPp6/0rHkxa/fRqs9Z3UDG1Ow6JQ7ln4v E0dFVKg0PzYrJdwDlDoCZB4u4maIP0EOrqliudirw1Emseqiza+B2f5g3FAjX9LMjBkM 30pw== X-Gm-Message-State: AOJu0YzdldPie6TGh1kw/TLMBNcXfa42l2uowF+0CvoVjN3M8xSgD6YC aokAmMDUn/BPJTOjeQoc9pt39iMo4KqdrXtgigtPF/L+aEXjPfzvMXUPlTAx9kHA5Zi6SoAxZNQ J8WdRG1OXFF3MRyMGZe6UNR3l8oQbqAmnhA== X-Gm-Gg: ASbGncu1dau7CRUtS4u+lgduAWAPfNJTVE20a85MPzzYa/xn/6H8szznuLhGvMIbdJx v7J6EY/R4qihUkO6MCRmX5GIGqfi5QTWyhyyzonndtvdNJaCmNYcuN67Ii5UCoH21vPnY84A6eK aR3u7Vq5jifmub0eiQpjJaS0i6r84Sv0S3Kl01u7lQcw== X-Google-Smtp-Source: AGHT+IF5J0xi6pq8cB2YgA8B4uSuWZfFeuLrbNvF7Tc5VyMWMOqLR9MQ58HzyMRMD/ceCbQ5y9v3PEA7oggXK+1OiNw= X-Received: by 2002:a05:6870:a58c:b0:2bc:6675:2043 with SMTP id 586e51a60fabf-2efb2a9a764mr1990184fac.14.1750855420136; Wed, 25 Jun 2025 05:43:40 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 25 Jun 2025 13:43:28 +0100 X-Gm-Features: Ac12FXyi6-GPJ95NSm_G8RllTWXjsQbq-7wnqQ0bsW2FA6-5V4tpL4sZ4fsGF6k Message-ID: Subject: Re: [PHP-DEV] Make Reflection*::getDocComment() return an empty string instead of false To: "Gina P. Banyard" Cc: PHP internals Content-Type: multipart/alternative; boundary="0000000000005ed256063864cbfc" From: devnexen@gmail.com (David CARLIER) --0000000000005ed256063864cbfc Content-Type: text/plain; charset="UTF-8" Hi, It makes more sense to me too to change this behavior. I would rather go with null though ; but that is just personal preference ; empty string is already better than false ... Did you assess how widely it is used before the users come back "angry" ? Cheers. On Wed, 25 Jun 2025 at 11:39, Gina P. Banyard wrote: > Hello internals, > > While working on the deprecation to/from bool type juggling in functions > RFC and seeing the impact within Symfony, we found a common slightly > annoying case. > The getDocComment method of various Reflection classes was always used as > a string, and we thought changing the behaviour in PHP made more sense. > > I submitted a PR [1] but was asked to gather feedback on the mailing list. > > Please let me know what you think. > > Best regards, > > Gina P. Banyard > > [1] https://github.com/php/php-src/pull/18928 > --0000000000005ed256063864cbfc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

It makes more sense to me too to ch= ange this behavior. I would rather go with null though ; but that is just p= ersonal preference ; empty string is already better than false ... Did you = assess how widely it is used before the users come back "angry" ?=

Cheers.

On Wed, 25 Jun= 2025 at 11:39, Gina P. Banyard <internals@gpb.moe> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">Hello internals,

While working on the deprecation to/from bool type juggling in functions RF= C and seeing the impact within Symfony, we found a common slightly annoying= case.
The getDocComment method of various Reflection classes was always used as a= string, and we thought changing the behaviour in PHP made more sense.

I submitted a PR [1] but was asked to gather feedback on the mailing list.<= br>
Please let me know what you think.

Best regards,

Gina P. Banyard

[1] https://github.com/php/php-src/pull/18928
--0000000000005ed256063864cbfc--