Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:130993 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 C35771A00BC for ; Sat, 23 May 2026 18:42:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1779561735; bh=HNefiGT9WzIwkc4D7uoD2PGFCUWQ3GbqvcoHYFBMtWI=; h=Date:From:To:Subject:From; b=Ud8kTdXewQMgrGL+oSzq4Pt/TRQgEDbnLsFG3INWSHbDrX/K2VTOqcqHWvhQtI+sN kwWIz6VWRCW7i5KOFkhXII41XmyrbfbqDByUO0NIf3zGUQceheNQkA4nnRg7ObjZJx keAvj6OnG7/XV59eNg+q990UFATrAuLEyhu84IV+PnuJseMU3ZmczWIS9P5h66ULzf d/6vvJifn8wuz8mlF9P6YzrvaD0An+lV8ZB0mZRejfSjlXBB1UhTJFABDMp0fK6o0B ULu/hP4c1ph8gVtBAZQnZIJ1O2u3vCISnv+CvFOLxP4CvOCCXSkb7eVr2xjDY2Ro4C PJ//y8sAOwj0g== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9AAA218007E for ; Sat, 23 May 2026 18:42:14 +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_MISSING, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: No X-Envelope-From: Received: from out16-54.antispamcloud.com (out16-54.antispamcloud.com [185.201.18.54]) (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 ; Sat, 23 May 2026 18:42:14 +0000 (UTC) Received: from d16178.usc1.stableserver.net ([194.39.148.149]) by mx322.antispamcloud.com with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1wQrIU-001KED-6R for internals@lists.php.net; Sat, 23 May 2026 20:42:07 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=s22.us; s=default; h=Content-Transfer-Encoding:Content-Type:Message-ID:Subject:To: From:Date:MIME-Version:Sender:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=N+ZuJGLXS8qlmpbYwx9vpyN6FmZA5VaboxsdgzcqymQ=; b=q0qXZfCLNfs+gEDXjyGAdnd0ax XnuWyQXQAlDR2BFcAiEed7sExoee8Ajhfan71oDAgPCiVLHmek/xwQ6CcYEAuOSEj5db7M1y8ckQM 9BcWrEgbph57lCxfME2Mcnd/Y6s0CAsfVR4nY7yAG2s9w00Vm7h5mFUa3ex947n9RcX1hbzrCansl 2CsKfWEvYIEKHWnR9cGN39gan1kBw+74PDU6hPCz+hUvUPEq7Cao/eNhliDdrTueOTdt9+C1zkCLE O+LU5ESnalXDzwwyyX7w4IYd77EpwjNgpLzpPlz9pVg58UuaxDvmU39EFURinxwFltsYsp+AnyjDR h3RWrdwg==; Received: from [::1] (port=59322 helo=d16178.usc1.stableserver.net) by d16178.usc1.stableserver.net with esmtpa (Exim 4.99.2) (envelope-from ) id 1wQrIX-0000000DiaA-1on1 for internals@lists.php.net; Sat, 23 May 2026 18:42:04 +0000 Precedence: list list-help: list-unsubscribe: list-post: List-Id: x-ms-reactions: disallow MIME-Version: 1.0 Date: Sat, 23 May 2026 18:42:04 +0000 To: internals@lists.php.net Subject: Re: [PHP-DEV] Proposal for 2 new magic constants User-Agent: Roundcube Webmail/1.6.15 Message-ID: X-Sender: php@s22.us Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Get-Message-Sender-Via: d16178.usc1.stableserver.net: authenticated_id: php@s22.us X-Authenticated-Sender: d16178.usc1.stableserver.net: php@s22.us X-Originating-IP: 194.39.148.149 X-Spampanel-Domain: d16178.usc1.stableserver.net X-Spampanel-Username: 194.39.148.149 Authentication-Results: antispamcloud.com; auth=pass smtp.auth=194.39.148.149@d16178.usc1.stableserver.net X-Spampanel-Outgoing-Class: unsure X-Spampanel-Outgoing-Evidence: Combined (0.21) X-Recommended-Action: accept X-Filter-ID: 9kzQTOBWQUFZTohSKvQbgI7ZDo5ubYELi59AwcWUnuUSNgIXOXzLbkQzSV+L0mr2u7GWEMUq3Rjl PWNrltvRLyu2SmbhJN1U9FKs8X3+Nt3xBh+1D/YvhknNstDUlWYaX2QCjfLf+/Izp4emXQSStr1I MAOYTu7IVYaGQtUyqILmD6wdmZPcItWbGe10hXJtgsOrncOteIS1H8rvEpPKEabhl3nfFY6HnhCo Ll8na5Hqq8tTNcoIYPGPkP/lfoy+XGHuGjIyhYcySph9ARoCa/AOkSGL6EjXRN+U/lR89PKlu3db eB82e4qSoY/T1kos/bkKCxxzY2p31rOYNrhltnzprFRbpFQTOcEGeQOY3IecFR5Yg+xLJYwKSmVR caS8DlT23jFwJQ6bi2K/vxG0KiS3/0aXiE97ptqEFHGJYQ+ePfYw3UQ7nJrbBLDZSC0ytw6G02mD 56KU5N87rMzzQ8OaBFw14vZ7tibW2Cp/S4u8Ksk+aedMfNWSnJswrtlN7YqI6iNDb2gNv39eJDIf de3AEfZJ/kNBewbCrxKo3Q4L/03cezCGtD7ZsauNAbLOMFFiRS1hBm+zO5QRX6TI/AHE5ngPF4+F 1CmtbAYBbaTonV+E7OMXRvgtdyMlnmWiULASoZJv86odKj+qW1ZHNyAlw+OL81m8v+ReAuaK6tdy RnPhcgJIowUGh7EzYrlbTA42fZLtJrzhXmJ4RJdHW7cjeOdZ/x7cxVH0vO7FQ3KWLi6/SX8BU7cZ 1H5IENcm7iTADDjYJJqVFl55toaKy0YYdLkbTXRcOA3Ju3C8bZGVlIrh176AdHWPHtEfHkzm2Whd qXgHpoApArBaB3uJppWh0Lz3BYbkvjk/yLflo4Zm4zuNRcgRKiGg7nXFaZTxYL9C8iacD1wj5xOq pzIRA3wkRP37FosOgYoBK1qojaRS2LRuQnOzUQLPG7brZOSleKRu9mnZyLxmWdQ4dPTQFk16otAX vB4iDrtMDEG6auGyCPvsemEkkH79p+0yeA3tZJ0Q4x+0GOxZvoENDONKwbWpcv7j2jxrOCLgGCCA 557D6h5q+/BUJSeh0VizOsfDNu7KM0rEtLV9NTe95wU6fjF+3XLsa7zHsxAzT4Dfaeg= X-Report-Abuse-To: spam@quarantine15.antispamcloud.com X-Complaints-To: abuse@master.antispamcloud.com From: php@s22.us Thanks for the feedback, Jordi. I appreciate it. A couple of thoughts upon reading your reply: Unless I'm missing something, I don't see the problem of having PHP return that information, since it already does so. E.g. __DIR__ will return: /home/username/path/to/dir so my proposal is not asking for anything new — just to return a partial string of the path already available from PHP. Perhaps a magic constant would be the wrong way to do it, but in my thinking, it would fit right in with __FILE__, __DIR__, etc. Marc