Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124590 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 C3D301A00B7 for ; Thu, 25 Jul 2024 15:43:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721922316; bh=fjhRuX1JVrPN0Un7YaynDLD6obIL0YyMLNwlENtp4Fw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CTCdZwo7lOG6c4dVAPJwmQ60dCr8xDTeE5OtgrR+V9TvP/8KKGUMR0BN2yXeEa2EP IzYMkEApljitOFP+O2/O46xTVsJFn++ahbMykW/RCBY9E0z2LO77GfjiYm8PfeaPU5 silE1g3ZdcHJn7g0nbpLt0+0cqgbK2FtQ+6Ssm54Fsds0kk3do1raiFFcf1o9xy6DQ 3RZe+TrWcVNTojSCDey4u0DUdXMX0IOTlitVoxUvCYb/ioXjjyPDehDyS26sqDyrrM jOqo07/lIeoK+h4mKwIYnaYTfesTzmU9qc6fV+A+T2u4+PQV046vBOxD45f8cZMwdZ DFyNysStHNwfg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 751BD180072 for ; Thu, 25 Jul 2024 15:45:14 +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,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 ; Thu, 25 Jul 2024 15:45:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bastelstu.be; s=mail20171119; t=1721922216; bh=J+rd8XnBaSlGs1dVlzuP9Yx9TUG5+hnRcMeW/Hd9I8A=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type:from:to:cc:subject:message-id; b=SCjl3KAGz3PmT4fDvAdV6zPpIys9UMT19mpfhi/i+MmR5bu5m/oYXC/tXpPLPziCy hUjEPIHhYBRJNksE4ramb+6+7RL+AoSMwETb0wrhMPFJqnwfbCJkq+v7LQMWh+4hnv 8/+ihQBK/gkg1hAUdtAP5eN7nd4BL/fzgublBZDW12DpZysqzEoHBEJV/pJLRP2+5C jUzDVxI0yb5NKyf/vQa0opxXXVjJygwn9Z4Sb5uIegudM+DeKI1Sg+5P1jHcQvR7W6 EOVpNZ4HHHsIK7Ge9E4xbvXr0W1GhUEe9t1vPpV67zlFHZejShlwmzrr+20VI1ESeI Qt8KSXnYa+Xuw== Message-ID: <04751f62-dda8-4b88-8a11-1f4628aba46e@bastelstu.be> Date: Thu, 25 Jul 2024 17:43:35 +0200 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Subject: Re: [PHP-DEV] [RFC] Lazy Objects To: Arnaud Le Blanc Cc: Nicolas Grekas , Rob Landers , =?UTF-8?Q?Benjamin_Au=C3=9Fenhofer?= , PHP Internals List References: <46bd4098-2936-4e46-98e9-fe55118325c2@bastelstu.be> <61ab36bc-b045-452a-84e0-87367d4c680e@bastelstu.be> <07e065f2-8f64-4bad-9a98-51f4eaf63ddb@app.fastmail.com> <2a0a4650-c2c5-4c6d-ad3a-25365b3391b2@bastelstu.be> Content-Language: en-US In-Reply-To: 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 On 7/25/24 17:40, Arnaud Le Blanc wrote: > Thank you! We have updated the RFC accordingly. LGTM :-) >> 5. In the explanation of >> "ReflectionClass::markLazyObjectAsInitialized()", it says: >> >>> Its behavior is the same as described for Ghost Objects in the >>> Initialization Sequence section, except that the initializer is not >>> called. >>> >> >> This means that calling `markLazyObjectAsInitialized()` on a lazy proxy >> turns it into a regular object of the proxy class, as if >> `newInstanceWithoutConstructor()` was used, right? > > Yes, except for the value of properties that were already initialized. Right, thank you for the clarification. Best regards Tim Düsterhus