← All docs

ob_get_length() — internals

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

ob_get_length() — internals

Where it lives

Lowering notes

  • Lowers ob_get_length() and boxes the length-or-false result (the runtime
  • returns -1 when no buffer is active).

Runtime helpers

The following runtime helpers are referenced:

  • __rt_ob_clean
  • __rt_ob_end_clean
  • __rt_ob_length
  • __rt_ob_level

Signature summary

function ob_get_length(): mixed

What the type checker enforces

  • Arity: takes no arguments.

Eval interpreter (magician)

Cross-references