Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119419 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 63960 invoked from network); 24 Jan 2023 15:51:19 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 24 Jan 2023 15:51:19 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 2F37E180210 for ; Tue, 24 Jan 2023 07:51:19 -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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS29838 64.147.123.0/24 X-Spam-Virus: No X-Envelope-From: Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 24 Jan 2023 07:51:19 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 5CC9932004AE; Tue, 24 Jan 2023 10:51:17 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 24 Jan 2023 10:51:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rxv.me; h=cc:cc :content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1674575476; x= 1674661876; bh=dAL6gYEpB9Fh1rY0WZ4gIlX0pjx78rEJKLnhrxR8Bmw=; b=B 3hXSeRHKrlZIlAdandocUjiqKRxoFCJ5yuDJGHJU2sPY1qn6gDnNuGbgQiOv+DKH ciV+tNhbk+KSnUeSJ2lc1iU03chcoxfVUpOkQz/gwyKSIuNvlhIJV4892tTVEBdT /Zj2sfEwQG/2FwJ7sdY0baCDrrtTFId4/yLgGt7ofIQ0IOJPGV+35JvNxoCi23Zq sy1zoyMPMJ+T5jfVWKCiU1zV90ShVQKMf3LZm28S2dESz2waGjQZvJ3oZCvp+ZlE WvPxI7Y4leA4LhYHqdPHB1urX9A4phdcf9nT+smqNOtI8ASvx3qm6H+x83mjq66n Pw5srD3lZQqAD9qNGHUdw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1674575476; x= 1674661876; bh=dAL6gYEpB9Fh1rY0WZ4gIlX0pjx78rEJKLnhrxR8Bmw=; b=q vXDWZYGPa8trbVFX4jxEPNnIzplgu0g93SIgDVfDu7xTpdlYCETFhx26MfvFsVOa pmVnT5nt0pw3R/LSJlJD60+4bZcLhnKr/l16m1Wa4qtTtbph71WrRS0cG0BQLvi5 laY418+xai3fIGAXr0VHZ3BthkvZ3t4loB3W3Uu2K9mBxbHar5xVcrKHtKs3ZyDn ZQmsBeTt4QdMlcZ6+mPciGTiXBFbTu6uZCMlXD30nBTkI2nksPHP1u4pbHW+QWJL 7nubNy3twEyNW8U9ONLJTvuXhoIEbqdQ8PfYidg7MXcGhhFNc4ZJ+vzq4WH7TXw2 oJd2AMLkuyCmXBS98rXRg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddvtddgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfhffuvfevfhgjtgfgsehtjeertddtfeejnecuhfhrohhmpeevlhhi nhhtucfrrhhivghsthcuoehphhhpqdhinhhtvghrnhgrlhhssehrgihvrdhmvgeqnecugg ftrfgrthhtvghrnhepveeufefgieegledtueelieeuueekffeiueevgeefveettedtuedv ueduhffhheegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepphhhphdqihhnthgvrhhnrghlshesrhigvhdrmhgv X-ME-Proxy: Feedback-ID: ief414475:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 24 Jan 2023 10:51:16 -0500 (EST) Message-ID: <3f1d79c5-310d-9d3b-0874-abc5c8973cae@rxv.me> Date: Tue, 24 Jan 2023 09:51:14 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 To: Marco Pivetta , Aleksander Machniak Cc: PHP Internals List References: <1b532bf0-7934-e693-ba01-32b9587d54f5@alec.pl> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Pass Scope to Magic Accessors From: php-internals@rxv.me (Clint Priest) On 1/19/2023 12:40 PM, Marco Pivetta wrote: > Not just that, but `debug_backtrace()` already exists for that purpose. > I have use debug_backtrace() exactly for this purpose in the past. It was to make a protected property readable/writable, but only by certain "friend classes." It's pretty trivial to make happen with debug_backtrace() and even more so if you wrap it in its own reusable function. I don't see the need to implement this in the language since it's possible to achieve in userland trivially.