Skip to content

Stdlib: is_uploaded_file() VM + LLVM JIT/AOT #2204

Description

@PurHur

Problem

move_uploaded_file() (#2005) validates upload temp paths via phpc_is_valid_upload_temp, but is_uploaded_file() is not exposed in compiler stdlib. Secure upload handlers need to check tmp paths before moving.

Goal

is_uploaded_file(string $filename): bool on VM, JIT, and AOT — reuse existing upload temp validation (no PHP internal wrappers).

Acceptance

  • Returns true only for phpc_upload_* temps under system temp dir
  • PHPT compliance + AOT fixture; @group llvm JIT test
  • Capability matrix row VM/JIT/AOT yes

Links

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:webWeb / CGI / superglobalsenhancementNew feature or requestphase-4:stdlibPhase 4 – stdlib for web apps

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions