← All docs

popen() — internals

Compiler internals for popen(): lowering path, type checks, and runtime helpers.

popen() — internals

Where it lives

Lowering notes

  • Lowers popen(command, mode) and boxes the process pipe as resource|false.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_popen

Signature summary

function popen(string $command, string $mode): mixed

What the type checker enforces

  • Arity: takes exactly 2 arguments.

Eval interpreter (magician)

Cross-references