Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:126997 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 858A51A00BC for ; Tue, 1 Apr 2025 09:02:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1743498000; bh=aR+4b6TJqlVdiYR4K1jeXkkccllAtgA+F6lppS/8mNM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Zv1s3MNhSCrk1Up1lHqrPQoewyMrBaTjB+dRBYbTNliSfigoAQcEsH8ZAQ7uvbinY W4yEGY5AjqUVU/fGVC3dou858LNU9k4JDXXC7qz7P6M0D4hZMVObbGxYTYitZR9X5X 96+gXpPH41am/dvKOUwbcXmG53Om40+lEnkazXkCy299Ldc+6PheqycRhRf0DkmCYR H+3YFTZ7l7R6+UFZxlxwj+/FikL/82MiOawLxI3UUPUGr9xhuSNNBMieyw9z+lrQvc wOrFn3xPQS5Eu1hlrY0b8bGzHDVg6AWq7Ej3BRhUgm+Qo7Kr0AV3g2SKjzmE8zwsv9 FB1/ulRB0OYKQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 0817E1801EF for ; Tue, 1 Apr 2025 09:00:00 +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.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from chrono.xqk7.com (chrono.xqk7.com [176.9.45.72]) (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 ; Tue, 1 Apr 2025 08:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1743498145; bh=MTd73ivSIu8xnjjoBNzrcdw8DOGBZD13uLrQSG20hqA=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type:from:to:cc:subject:message-id; b=Ec9owSyaB1U4bGQeKxp2EkPl87ULnQ/05XIqv72PrTg5H3zKFMNOV0LL51PFZV4kj 6hTJ9pQ4JAomfMID5EyHsXZfrI5zHFFhWndSmE3BOc8dskRFuOeyVNVg0t0eDSYqWa EQpQQtw84h1lTJLkL6pTcDY1CIAp0EoYXzQxiEetCDXVtZ0o43xxD1rZiGfdVe2ShC 9rZiTn7eeZtqQcohCA4Z6N2ZWtLEzbkxoKjtYUkbwmj2IwfYhpb7ApzJOXPKIAjA0e qodrsOv6Qens7FRjPW+UTkdbFkKbPfpIO06XkIulE74iLxD5XyL3NHIM3n1RS5Z2iu Wl7pb4klWOGAQ== Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Date: Tue, 01 Apr 2025 11:02:25 +0200 To: Ilija Tovilo Cc: PHP internals Subject: Re: [PHP-DEV] Closure::getCurrent() for recursion In-Reply-To: References: Message-ID: <289e4e1bbcb65ca73881eafe2fb50375@bastelstu.be> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit From: tim@bastelstu.be (=?UTF-8?Q?Tim_D=C3=BCsterhus?=) Hi Am 2025-03-31 22:38, schrieb Ilija Tovilo: > Do you have thoughts or concerns with this solution? If not, I'm > planning to merge it into master in a few weeks. I don't particularly like this kind of “magic scope / backtrace introspecting” functions, but it certainly is a pragmatic solution (and there's sufficient precedent, including `Fiber::getCurrent()`). Best regards Tim Düsterhus