Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124220 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 137EC1A009D for ; Thu, 4 Jul 2024 15:25:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1720106815; bh=QEkKl+pRpOYk5ZaqbIJDChCjDtjIamLuYt6AUdC9VvA=; h=In-Reply-To:References:Date:From:To:Subject:From; b=kdgLX4AV3EqGFzU3H/66X7UEUoa+3ApTCJhNtSfVQj4L+IKgeBAR3ImeZFl0UUEt8 r/QILIS/9ncLcMid3gU7sDJXN41w+/AlnTiSYgP/LXk6NQSUzDlddzL9A4y78AopRl e92ViN9dxdpsiq6w0bWTTKFUQs0wo3TlirGYmAms0QdOTezPdA9wCEpRGaBexMgSok pGgPOON8Pt6PKUmOhczkU89Vdenj0dCV4lfsBvqppvDC7hYXaPZ8tZCUatwZfgQWty lGIzpWaC4WO40y1N839+wuEu/0OSDTIvuK0Fe8eqyLeAIgeyd5csOzmPQEnibc8uwl 63qY/QY2hjiSw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id DB416180C1A for ; Thu, 4 Jul 2024 15:26:52 +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,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fhigh4-smtp.messagingengine.com (fhigh4-smtp.messagingengine.com [103.168.172.155]) (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, 4 Jul 2024 15:26:50 +0000 (UTC) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id B14C311400BC for ; Thu, 4 Jul 2024 11:25:27 -0400 (EDT) Received: from imap50 ([10.202.2.100]) by compute1.internal (MEProxy); Thu, 04 Jul 2024 11:25:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding: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=1720106727; x=1720193127; bh=LNi+Al0tqQCWWc5BlHLYT y2r+zBCqwdl34SbCFdVjxg=; b=mwosuI14n9A12CeWPLOBZUNtQ2wOT0mccYzdU Paa9/RHwJWgHPmZIGCPLCPWja3+t4Kua7sCQyJ2l4a7etEsbzJVzcrsrYxGu7Jpn 1qKdAhfe4nzHnlWdLlW1XCDxIKGJn6B7WVjbxrXU3eHCDFcPAFDe/IzUpA4pkRIR kdBgbxR8m2uuFmcnVqHXytZBG6waST8oFAMAlhD3szFlQb2RepRuLyz4koUNsfuQ PL/KFgevfBNKmpSJx3Di18u8qkfC3mcJ7LZ1nfVQC/ej8oJ8VDUoLr9lAhDm84+3 rsIIXf231B9SwODpJafOrCBAFU1t3IV6RjPv4EBSZ2f+Ig2UA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=1720106727; x= 1720193127; bh=LNi+Al0tqQCWWc5BlHLYTy2r+zBCqwdl34SbCFdVjxg=; b=o KpuQok6lwPdHCzaaX4t+rkinLuWJvEPob8iGpXGxk95V/Tdw/2MRSTUZ7wwqSHww Fd0ocJSv0HaTwpG/21zNcGQitvcsx/zofJLJky7CHr3VOSFw7FCCp5qLApxefN3C L/OF5GZJuRvHIIHtHxQW+xXEBw4GQ3he5JKIndyfNgzsPTjfIhqDOgCX3ui3ZaCf 2gGJ+aQD0AkuNSR8AupnTClQxtPb/PEFN3DlS41PoD3XxGijm01l9L4ZFgV/TYAY dLz5tSFYAESUR8vhjo6sBrLJuFtDW/smmh0JU7DCxD8XOIfRduk4qTelXNnGQJ/u U/WZjKHVEEYu+wYfcFeVg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudelgdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdfnrghr rhihucfirghrfhhivghlugdfuceolhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtoh hmqeenucggtffrrghtthgvrhhnpeffffffjeffudfggeevvdeitdetvdfgjefffeffjeel feejteevheeghffhvdfgleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomh X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6759A1700093; Thu, 4 Jul 2024 11:25:27 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-566-g3812ddbbc-fm-20240627.001-g3812ddbb Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 Message-ID: <285c4e8a-d197-46b2-8884-75aebc846ecf@app.fastmail.com> In-Reply-To: References: <09559430-4477-4516-8D78-6F4071E1AA6C@newclarity.net> <0182F3D6-F464-477F-9029-A2D0A8B50C71@koalephant.com> <1AFD7AAE-8BEA-460D-88A8-15BB3D30A775@koalephant.com> Date: Thu, 04 Jul 2024 10:25:05 -0500 To: "php internals" Subject: Re: [PHP-DEV] Iteration III: Packages (was Re: [PHP-DEV] [Initial Feedback] PHP User Modules - An Adaptation of ES6 from JavaScript) Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable From: larry@garfieldtech.com ("Larry Garfield") On Thu, Jul 4, 2024, at 5:48 AM, Rob Landers wrote: > If I could have one to be a PER first, it would be the container=20 > interface (PSR-11). When it was originally worked on, there was=20 > basically one lifecycle of an object: a request. For almost all=20 > possible SAPIs, after the request ended, everything was gone. Today, w= e=20 > basically have multiple ones if you are using modern runtimes: > 1. Environment Scope: configuration that survives execution of the=20 > program > 2. Global Scope: services/entities that can exist beyond the lifetime=20 > of a request, but may or may not (depending on runtime) > 3. Request Scope: services/entities that should be unique for every=20 > request. > 4. Volatile Scope: services/entities that should be created every tim= e=20 > they are injected. > Right now, these are all mixed into one giant container, that may or=20 > may not be shared between requests, because that is the interface we=20 > have to work with. It isn't great :| but it works, barely. > > =E2=80=94 Rob There's been on and off discussion this year about container registratio= n, not just retrieval. That could be done as an add-on PSR, most likely= . The challenge is that there's fundamentally different ways to go abou= t registration, and little consensus on it. (And the people most intere= sted in talking about it haven't wanted to go to the effort of organizin= g a Working Group.) I suspect scoping would have similar challenges. B= ut if someone can get a working group together around a particular direc= tion, we'd be open to that discussion. That would be entirely off topic for this list, though, so let's not go = further down that rabbit hole. --Larry Garfield