← All docs

file_put_contents() — internals

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

file_put_contents() — internals

Where it lives

Lowering notes

  • Lowers file_put_contents(path, data) through the target-aware runtime writer.

Runtime helpers

The following runtime helpers are referenced:

  • __rt_file_put_contents
  • __rt_file_put_contents_maybe_phar

Signature summary

function file_put_contents(string $filename, string $data): int

What the type checker enforces

  • Arity: takes exactly 2 arguments.

Eval interpreter (magician)

Cross-references