Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:125571 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 qa.php.net (Postfix) with ESMTPS id 365171A00C9 for ; Mon, 16 Sep 2024 18:01:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1726509798; bh=8afGjHcjhajbxfrt6V3ha3bncPyThhg2PCm+rrxyOzo=; h=From:Date:Subject:To:From; b=cgc6utq6S2/BSNXfwejUYpYE2b2mWE1lBBCqAjAOAz30EHLCZYiPbzDJBNpygLqOw z/yfqJI1rFvp93qj7SY6AK3tWsWMoezDVY84gDgB18gksu6GYs0KDzmi9npvnKchoi U4fM8lqbBXnNzIpMHTQX6p/Cynj3hG1RxzEV+ZmGJsUl5h0LBjdPpYZbVgGnjSc21M GreXfyR6v1xJJvYyKAuUmBYqCsyicQlKXpHcVztLz6IVqj6agWYMbibPDtCSnJ0M69 TnzQIIZ8PCheMgVrOeV4T60xGOikiMwkvp1Qtr1Z8SOoc1unykA/PnjMF2JNNh7Y/x +hkrw4rb9CYEA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id C6E8B18007C for ; Mon, 16 Sep 2024 18:03:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) 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_H2,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-ua1-f42.google.com (mail-ua1-f42.google.com [209.85.222.42]) (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 ; Mon, 16 Sep 2024 18:03:11 +0000 (UTC) Received: by mail-ua1-f42.google.com with SMTP id a1e0cc1a2514c-846c59979efso1094427241.3 for ; Mon, 16 Sep 2024 11:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726509666; x=1727114466; darn=lists.php.net; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=8afGjHcjhajbxfrt6V3ha3bncPyThhg2PCm+rrxyOzo=; b=Bfdgxeh/SPCe/0dV7eFT1aaectOGJBu2fBCTE5tXB86HmdJwRfhUaTAcA55JtPIrY4 CMksoIOQeC9TWQAfAeCqY/v7D5c9zUUd+xr31rQTNF/d2duACKb7qEMDimKEkF3pnMwk K0JgyQpZK+rsn7YoA5yCqXu2Sl2n6ovDDFR3eUOkyOD6C0TLuh7IT9y4XvPgqpHbxFUI MBp2culg+trGdT23ykgZljkusNIzNnhusTedSfGI9ayIYdlMoYSvftsIcJrnGEsiYkd0 B8vfEZeRF4Xv7xX2GMThFY4c72MV+SbFIqFiYlswVE6RzShDchIij0ddn+7g0GWPM0G4 n8tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726509666; x=1727114466; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8afGjHcjhajbxfrt6V3ha3bncPyThhg2PCm+rrxyOzo=; b=LaIK5msUkunXmOCvYWJC3As++5E77zjUCfXmTJo8LwbXEmTYNRFagFNuycnDMJ8asp vDyGm15SlwWhCVjx5nwcW1NrTD5u4JkNxv/yZHMDaOQxRSvlMMYSxz6yFbbPDSI9vAXl uTQmjkiRBGqIMs+9474F/ez48Dy6Vl44E7B0BXc9Pp9xBNkZrGQfDKQ4yAs7clVxIi0C Ss9US1b3QKnpWEvel/xTly4hU+0Aq9sc2Dn7rjn98sdNaMq7QVMnoXY5UmGalPVw4zOW ZXLWLJG/TQpbvIhl+cXPYKdQDivdp/ombkNugITbYx/Pw8pwBv6+qbi7J3RHlJySOMvS GGPg== X-Gm-Message-State: AOJu0Yz9V61ZlaPlKLC6IB3o9vu+qT4BGAVa9m1FWADfpbMhm02zRiQN s3r8SAfHi8QLoq+2iQ+TAea1bYaadGXapM5DbDIO6L+dh5m1qPDNqNJJBzaq3Gd/i+MdUCZ2LEN 5inf1tkn2aat3oEphwZ0EcD8LrdJxaMRZ X-Google-Smtp-Source: AGHT+IHFuPPCMnSEAKrUT7y5kNVHeX62Xl0cZcXPvkfzRmVoqBR0Grn7fJoggRURA8DHpAqm5qhnuIXmPEjZg0lSabs= X-Received: by 2002:a05:6102:3585:b0:492:a5a9:a74 with SMTP id ada2fe7eead31-49d41599fd9mr12833237137.22.1726509662220; Mon, 16 Sep 2024 11:01:02 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Mon, 16 Sep 2024 11:00:25 -0700 Message-ID: Subject: [PHP-DEV] Adding new `ReflectionConstant::getFileName()` To: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000001e3bf50622405be6" From: daniel.e.scherzer@gmail.com (Daniel Scherzer) --0000000000001e3bf50622405be6 Content-Type: text/plain; charset="UTF-8" Dear Internals, Last week I sent a patch[1] to address a feature request[2] for a way to identify at runtime what file a constant was declared in. Since this adds the filename (a `zend_string`) to every `zend_constant` instance, it is not the most trivial of changes. It was suggested[3] by iluuu1994 that this may qualify as a small change that can be merged without an RFC, if there are no objections on the mailing list. So, are there any objections? I'll note that the `ReflectionConstant` class was added[4] as part of PHP 8.4, so it would be great if this new method could also be included as part of the 8.4 release. Thanks, --Daniel Scherzer (https://github.com/DanielEScherzer) [1] https://github.com/php/php-src/pull/15847 [2] https://github.com/php/php-src/issues/15723 [3] https://github.com/php/php-src/pull/15847#issuecomment-2345774089 [4] https://github.com/php/php-src/pull/13669 --0000000000001e3bf50622405be6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear Internals,

Last week I sent a patc= h[1] to address a feature request[2] for a way to identify at runtime what = file a constant was declared in. Since this adds the filename (a `zend_stri= ng`) to every `zend_constant` instance, it is not the most trivial of chang= es.

It was suggested[3] by=C2=A0iluuu1994=C2=A0tha= t this may qualify as a small change that can be merged without an RFC, if = there are no objections on the mailing list. So, are there any objections?<= /div>

I'll note that the `ReflectionConstant` class = was added[4] as part of PHP 8.4, so it would be great if this new method co= uld also be included as part of the 8.4 release.

T= hanks,

--0000000000001e3bf50622405be6--