Skip to content

Stdlib: stream_metadata() — stream wrapper metadata callback missing (ext/standard/streamsfuncs.c) #8689

Description

@PurHur

Category

stdlib

Problem

stream_metadata() is missing. Zend uses it internally and exposes it for custom stream wrappers to handle touch/chmod/chown/chgrp/access metadata operations on stream resources.

function_exists('stream_metadata') is false on bin/vm.php; Zend returns true.

php-src reference

Repro (failure today)

php bin/vm.php test/repro/maintainer_stream_metadata_missing.php
# stream_metadata: no

Scope (this repo)

Layer Path
ext/standard stream_metadata.php + VM hook into wrapper ops table
VM Dispatch STREAM_META_* codes to registered wrapper; php-src-strict operand checks
Tests test/compliance/cases/stdlib/stream_metadata.phpt

Pair with #3448 (stream context helpers) and wrapper registration issues.

Done when

  • function_exists('stream_metadata') true on VM
  • Non-resource first arg → TypeError like Zend
  • Known STREAM_META_* codes forwarded to wrapper callback
  • Targeted compliance filter green

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:vmVirtual machineenhancementNew feature or requestimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimphase-4:stdlibPhase 4 – stdlib for web apps

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions