← All docs

zval_free()

Frees a PHP zval pointer allocated by `zval_pack`.

zval_free()

function zval_free(pointer $zval): void

Frees a PHP zval pointer allocated by zval_pack.

Parameters:

  • $zval (pointer)

Returns: void

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how zval_free is implemented in the compiler, see the internals page.