Stdlib: move_uploaded_file for VM (multipart uploads, #2005) - #2014
Merged
Conversation
Add VM builtin with upload-temp validation (phpc_upload_* under sys temp), fix $_FILES multipart population via VmParseStr helpers, and compliance PHPTs. Closes #2005. Sync inventory 606 and defer spine bundle until M2 batch. 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 with upload-temp validation (phpc_upload_*undersys_get_temp_dir()).$_FILESpopulation: wireSuperglobals::populateMultipartFiletoVmParseStr::ensureArrayChild/setScalarEntry(fixes latent fatal on file uploads).Closes #2005
Test plan
VMTest—move_uploaded_file+move_uploaded_file_multipartPHPTs passVMTest—files_nested(multipart$_FILES) passes after Superglobals fixphp script/capability-matrix.php --checkscript/ci-fast.shgates through spine coverage (inventory 606;move_uploaded_file.phpdeferred from spine smoke until M2 batch)Made with Cursor