← All docs

tmpfile() — internals

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

tmpfile() — internals

Where it lives

Lowering notes

  • Lowers tmpfile() and boxes the anonymous stream descriptor or PHP false.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_filemtime
  • __rt_linkinfo
  • __rt_tmpfile

Signature summary

function tmpfile(): mixed

What the type checker enforces

  • Arity: takes no arguments.

Eval interpreter (magician)

Cross-references