Alpha ZealPHP is early-stage and under active development. APIs may change between minor versions until v1.0. Feedback and bug reports welcome on GitHub.
API Index — Namespaces, Packages, Reports, Indices

ZealPHP_IPC_Sender
in package

FinalYes

Destructor-based metadata frame sender. PHP runs destructors even after exit() is called from inside a shutdown function — phpMyAdmin's ResponseRenderer->response() does exactly that. The shutdown chain gets preempted, but a destructor on a static instance still fires, so the parent receives status/headers/cookies regardless of how the request ended.

Body bytes are written directly to STDOUT during the request (no IPC framing on STDOUT), so this sender only carries metadata.

Table of Contents

Properties

$instance  : self|null

Methods

__destruct()  : mixed
init()  : self

Properties

$instance

private static self|null $instance = \null

Methods

init()

public static init() : self
Return values
self
On this page