Override umask
value using a preload file loaded by Playground
#560
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to p1727269932269989-slack-C04GESRBWKW and #555.
Proposed Changes
umask
value, in Override defaultumask
in PHP #555 we were prepending a file using theauto_prepend_file
PHP directive. However, this is already used by Playground to define constants. As an alternative to the directive, Playground allows preloading PHP files if they are located in the path/internal/shared/preload
.umask
in PHP #555 to write the file in/internal/shared/preload
.Testing Instructions
Ensure
umask
value is overridennpm start
.test.php
, at the root level on the site, with the following content:http://localhost:<PORT>/test.php
.umask
value shown on the page is0022
.rwxr-xr-x
(Full access to owner, and only READ and EXECUTE permissions to group and others).Start a site created with a backup succeeds
npm start
.Pre-merge Checklist