Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124589 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 BC3911A00B7 for ; Thu, 25 Jul 2024 15:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721922147; bh=57qsoS2OaPXBr/XlN5C5wR/w0vcTtb9xWZi8ok9sqcM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=RT1P275KHdOBcAKHnTnUwG/wR6aZjQsZZFKNuGDbJYQ0uof1wy/CyMH/Q8Ud1+lBZ hcsDTBh8SPe5nqzJeA7t3RgBGk1DFnkyKedKSMSCTbmoIKajsFkdr7IMLLWbUb9nF8 IRTpkJcubaNBmN3u6BEZAsr0ckya2jl/fTHn/3Klc01LFuRSRJv2by4+QyttATZUjM szhm1xlnNQxIZ1w85dzKMTjhYRWSgOa44GHm8ZC6qyglxOXn/1bGh+XPDHMlNXyr04 5hDhGohRi2fDSXNHRXxAmVphMcojjLMFW2IaopTU9i2keNoN32no9wwpAvglcCxsDC 4CUFnliP2TiyA== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 969B7180039 for ; Thu, 25 Jul 2024 15:42:26 +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, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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:42:26 +0000 (UTC) Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a7aa086b077so68028166b.0 for ; Thu, 25 Jul 2024 08:40:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721922050; x=1722526850; darn=lists.php.net; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=57qsoS2OaPXBr/XlN5C5wR/w0vcTtb9xWZi8ok9sqcM=; b=g4R29kyJqAUI57owiBYYoLdr/vW94n4yD1/sTCGSDv3bCK55ySDgnW0z5W7z9trxiq VVdGUub2dqtEJFGzRK2dZiijeeNcJb2lHyoiSm9ujLvefauFlWmR9dtefPrAvVorWUon IjUdJz+taf1Q2VZe75df1G3TKANaaY6OF5F7v4D8sOnzdZfGHcL8LXzpNOC2rvrwNyd0 1WEvH/+anYhO+9lPOamIR0M+fYBVvQVf9VBk10p+xs1t3P4DA9X6uuBJiwYxAJyREZBy gPuPAaa1t74nfw6SaCyuEHKteMz9WR2GGPLVh5BqfMrfPkmdoteiVDA4DOL3EMzlyCC8 mn4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721922050; x=1722526850; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=57qsoS2OaPXBr/XlN5C5wR/w0vcTtb9xWZi8ok9sqcM=; b=jrv2HochfMPRHCEIKwBf22woa8NMHcrZ47KBpo1LrvKiHKLfvau0jJpMUIutQcblSA tVXEza8ziSojjtwQxoN7NIcOaMAcNfJljJaUu9186bpZOwFe5Xl9pRtYXObSTVQ0uCvL KKrpSa2rCvKU0ByMUVGwpAyypWYMvPYG9puGofLtuCKj+axYG9CWyBRAGdQtFBGoTjlw Slmykt9qRD/eBGeONWxS3Qpmjrj1RXRuW3VXbbIBFAQ98ls8f7bjBT8C+AO9acLVg/zb yZN5PgBx/tnhQ45NoVJcuxrk9ILRxWgD17SssvfVNrn1B0pIGni/DAcqdrnFhvkbqHKD tb4Q== X-Forwarded-Encrypted: i=1; AJvYcCUFwLVcWtuYunl+YURs0AIOsGh7fXpsZSP0qcGGF9inMR2oL9DH+CAajMV2myHrjlEVBcl+DBA56J5y+e2SmlseOUxmzG908g== X-Gm-Message-State: AOJu0Ywpi30i9sS0VkiCE7KTMgxhLiUqQSYSDXcJcUVt2Ojlc6QZx6rh nZLFy6ITPE/SQlM+MiRDBE/U4s0cgzk8K6FfxmrubdRa/E73j/+mtoVhja622GcAR+AlA+Pp7iw pdfOnY/W5q4+8c6Uc/ymGDv31uRo= X-Google-Smtp-Source: AGHT+IF3cglVnbSz9w5ahD4Lznu7ALE6lfnIwfLuHKNSrbPaGhaEDwkesO6PFS82wx5aP6cRl313H4fkEterJyHgbqQ= X-Received: by 2002:a17:906:7d7:b0:a77:e55a:9e87 with SMTP id a640c23a62f3a-a7ac503afd5mr173158766b.48.1721922049665; Thu, 25 Jul 2024 08:40:49 -0700 (PDT) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 References: <45847b93-02bf-459f-bcd2-81ba35a12c24@bastelstu.be> <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> In-Reply-To: Date: Thu, 25 Jul 2024 17:40:38 +0200 Message-ID: Subject: Re: [PHP-DEV] [RFC] Lazy Objects To: =?UTF-8?Q?Tim_D=C3=BCsterhus?= Cc: Nicolas Grekas , Rob Landers , =?UTF-8?Q?Benjamin_Au=C3=9Fenhofer?= , PHP Internals List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: arnaud.lb@gmail.com (Arnaud Le Blanc) Hi Tim, On Thu, Jul 25, 2024 at 4:47=E2=80=AFPM Tim D=C3=BCsterhus wrote: > I'm seeing there are some more changes and not just to the cloning > section. I've went through the entire RFC once again and here are my > (hopefully final) five remarks. They are only about textual > clarification of some behaviors, I don't have any further semantic concer= ns. Thank you! We have updated the RFC accordingly. > 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. Best Regards, Arnaud