Stdlib: move_uploaded_file for VM (multipart upload apps) (#2005) - #2021
Merged
Conversation
Implement temp-path validation for phpc_upload_* files, AOT runtime __compiler_move_uploaded_file, compliance/AOT PHPT coverage, and skip JIT until a dedicated lowering test lands. Co-authored-by: Cursor <cursoragent@cursor.com>
Feature already landed on master; keep SelfHostBuiltinPolicy filesystem entry and remove duplicate JIT registration / VmUpload fork. Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced May 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
move_uploaded_file()VM builtin withphpc_upload_*temp-path validation and..rejection on destinations.__compiler_move_uploaded_file(JIT compliance deferred; excluded fromJITTestlikepassword_hash).Test plan
./vendor/bin/phpunit --filter 'testCases#427' test/compliance/VMTest.php(Docker)./script/docker-ci-local.sh fast --filter move_uploaded_file(full fast gate on merge host)phpc serve+ multipart POST onexamples/006-FileUploadWeb(optional follow-up)Closes #2005
Made with Cursor