Re: [Discussion] Sandbox API
| From: | Calvin Buckley | Date: | Wed, 07 Aug 2024 13:51:15 +0000 |
| Subject: | Re: [Discussion] Sandbox API | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-124825@lists.php.net to get a copy of this message | ||
On Aug 6, 2024, at 3:09 AM, Nick Lockheart <lists@ageofdream.com> wrote:
>
>
> 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.