Skip to content

Stdlib: move_uploaded_file for VM (multipart uploads, #2005) - #2014

Merged
PurHur merged 1 commit into
masterfrom
agent/stdlib-move_uploaded_file
May 25, 2026
Merged

Stdlib: move_uploaded_file for VM (multipart uploads, #2005)#2014
PurHur merged 1 commit into
masterfrom
agent/stdlib-move_uploaded_file

Conversation

@PurHur

@PurHur PurHur commented May 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Implement move_uploaded_file() VM builtin with upload-temp validation (phpc_upload_* under sys_get_temp_dir()).
  • Fix multipart $_FILES population: wire Superglobals::populateMultipartFile to VmParseStr::ensureArrayChild / setScalarEntry (fixes latent fatal on file uploads).
  • Add compliance PHPTs (synthetic temp + multipart POST) and sync capability matrix (VM yes, JIT deferred).

Closes #2005

Test plan

  • Docker: VMTestmove_uploaded_file + move_uploaded_file_multipart PHPTs pass
  • Docker: VMTestfiles_nested (multipart $_FILES) passes after Superglobals fix
  • php script/capability-matrix.php --check
  • script/ci-fast.sh gates through spine coverage (inventory 606; move_uploaded_file.php deferred from spine smoke until M2 batch)

Made with Cursor

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stdlib: move_uploaded_file for VM (multipart upload reference apps)

1 participant