Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124461 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 6196F1A00B7 for ; Wed, 17 Jul 2024 22:08:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1721254216; bh=BAy/5BpWZKTxMJYGa+vS971TwtKngLVYLIDLP7Zftqg=; h=In-Reply-To:References:Date:From:To:Subject:From; b=LPBehhB3KfO5mssjdQqiWijRJbj36q1gTbTuPT+VKwXTKGDauyI+GtYnfCZYlAwmB yMZP5PFxAAWSYZON+d5Mq2U7rs4qG9HYxMFybh/xRHb4oW6BDdNkbYahPfgsNfbNHO JCzZMnsMbaLdunpEJQwG3LAWV/BXCbL1Ly0CC38cfwVlwa9KYj6t1aaI9Lp2ozUJQD uzb4B34+lxurNc1kxgqct14Njz0sJBAfTAFEs+lb8u4rul/RxtRZaNAQJUrCzNxH6q lvYbxWUGHuh3ogs9RYOjz7ujtgwOI/SKPWVFu1yoBMxqd6lCib9AxzfKWxz7OhQfpX L8BCJaXEzE4nQ== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9224F18006E for ; Wed, 17 Jul 2024 22:10:12 +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.1 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from fout4-smtp.messagingengine.com (fout4-smtp.messagingengine.com [103.168.172.147]) (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 ; Wed, 17 Jul 2024 22:10:11 +0000 (UTC) Received: from compute8.internal (compute8.nyi.internal [10.202.2.227]) by mailfout.nyi.internal (Postfix) with ESMTP id 640591380092 for ; Wed, 17 Jul 2024 18:08:41 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute8.internal (MEProxy); Wed, 17 Jul 2024 18:08:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-type:content-type:date:date:from :from:in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=fm2; t=1721254121; x= 1721340521; bh=smNyG+5e0wDy9RlFSwd7nNFie+hS4BDXKvT+ugaQgcs=; b=d Xn9KaaHxVhWxkaPSNiMDQe6P3T/uxg47763rgthzLt/9NvYbFJsHC8kH1i4f1ijk JDS9uS3TnK/YXtW24QkK44d7tWxQFcPJWrf4HE2JZRb0G8FDlSWK9TeYAH3ujmyd O9YSNwOIONoQlFJ1I01VfMBcMGgcY5bDvVHivUuqk/t3chN9D5SgevmDDkbmQRB7 4zE/Kk62UZSM7dHvym6evuX+0oq9Enxv95sTZI9TxXBq9HNwCwu3JWLl3q3oPbJ6 3elDuAoBa8xIteYtme3f81KKCURLvLvfXqfs/JhSAr2ZtQgW/MIR49MDqa+oePOf PsDnkxXWiPW+ZKbmlc4ow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1721254121; x=1721340521; bh=smNyG+5e0wDy9RlFSwd7nNFie+hS 4BDXKvT+ugaQgcs=; b=tXqNUEwCwElxJ0yOVe3B1gH1JL58SPcfSFTZL5JAVL2x iJpwxgG25xlq8nfV9rhO3cQgZtuz3b8GOgu7CvKzcBT0bONcDIDsCfC0+ZQjxAm9 2Wh/k34LtwnmgT1jztfs4QPXAjDebuWtwPPO/ebKdn1jYguq8rn4B+8FZ6iKJ/A9 2wUrHzlRtCjLXAzYRFzmh/LPbKVanX4FnFdN+3YKcOJeCPuJIGVyN5pQozRc21z7 ZI6qKaIU+a8sNRS/UJIiDlhu0kAbtcDuPAbuluXH27eaTGpZnYx5Fivn+VUy7565 ec2ShAtxedAtNktatwqGE5sq/wrdrNkKIGN4jc4ISw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrgeekgddtjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfnfgrrhhr hicuifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh eqnecuggftrfgrthhtvghrnhepgeelgfekudeivddvteffueejffdthfejieevhefgffek udevkedtvdelvddvffefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhm X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 975191700096; Wed, 17 Jul 2024 18:08:37 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-568-g843fbadbe-fm-20240701.003-g843fbadb Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 Message-ID: In-Reply-To: References: <1118bbcd-a7b4-47bf-bf35-1a36ab4628e1@bastelstu.be> <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> Date: Wed, 17 Jul 2024 22:08:14 +0000 To: "php internals" Subject: Re: [PHP-DEV] [RFC] Lazy Objects Content-Type: text/plain From: larry@garfieldtech.com ("Larry Garfield") On Wed, Jul 17, 2024, at 6:31 PM, Nicolas Grekas wrote: > A bit unrelated to the above topic: we've further clarified the RFC by > addition restrictions to what can be done with lazy proxies. Namely, > when the factory returns an object from a parent class, we describe > that adding more on the proxy class would throw, and we also explain > why. We also added a restriction to prevent a proxy from having an > overridden __clone or __destruct when the factory returns a parent, and > explained why again. > > This should simplify the overall behavior by preventing edge case that > wouldn't have easy answers. If those limitations prove too restrictive > in practice (my experience tells me they should be fine), they could be > leveraged in the future. > > On our side, this should close the last topics we wanted to address > before opening the vote. > > Please let us know if anyone has other concerns. > > Cheers, > Nicolas Minor point: Why is the $initializer return type null, instead of void? I don't see a purpose to allowing an explicit null return and nothing else. Otherwise, I'm quite looking forward to this. --Larry Garfield