Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:124825 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 0EE601A00B7 for ; Wed, 7 Aug 2024 13:51:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1723038791; bh=Ye0gfoChnlsaLYDuyoFX5gJbWEi/cFWOw5IHKkFW1QU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=GNBCN2LIDYr2ljCRodec59tpPSxNwKuDKDocAHECpKN/s6umY123pKK5bHNeOFwev qeaaibkBzNqxIXMvWqUWS8RXq6NZN/n8azZDKcqB719UZIYya4AK5qyom9VtqGr47h kNkcNyhyzCRWst1QMQMoql7fk27H9i/3ECsfuI+KLwvTejVOCjx6mgke6tbZ0aD9Ch h5jzHfzgttn9srxbAcN9bly6o6EuHxQIR1ZrYG0abrmXXN9DGeEeGG6PSNxQYbt+ij cO0R4DWu0/Xh/aZsYQ/u+Pju69mo02FuwLeqmk1fgwwEhXDQWvHwhfdZzuSfsOoLvI YLJj/rk9m3Nkw== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 20F98180052 for ; Wed, 7 Aug 2024 13:53:11 +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.8 required=5.0 tests=BAYES_50,DMARC_MISSING, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from supercat.cmpct.info (supercat.cmpct.info [71.19.146.230]) (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, 7 Aug 2024 13:53:10 +0000 (UTC) Received: from smtpclient.apple (fctnnbsc38w-142-162-55-237.dhcp-dynamic.fibreop.nb.bellaliant.net [142.162.55.237]) by supercat.cmpct.info (Postfix) with ESMTPSA id 04F5A514F9; Wed, 7 Aug 2024 13:51:26 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: [PHP-DEV] [Discussion] Sandbox API In-Reply-To: Date: Wed, 7 Aug 2024 10:51:15 -0300 Cc: PHP internals Content-Transfer-Encoding: quoted-printable Message-ID: <8F77E411-28E1-46DD-9FB8-65FD26374B99@cmpct.info> References: To: Nick Lockheart X-Mailer: Apple Mail (2.3774.600.62) From: calvin@cmpct.info (Calvin Buckley) On Aug 6, 2024, at 3:09=E2=80=AFAM, Nick Lockheart = wrote: >=20 >=20 > Sand Box: A first class API that allows unit testing of code with = mocks > and stubs of other classes or functions, without the need to modify = the > class under test. This honestly feels like it's going to be a repeat of safe_mode. What might be better is exposing OS things like Capsicum or unveil when possible. Capabilities are probably the right way to deal with this kind of thing, after all.=