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

HaltException extends Exception
in package

Thrown to cleanly halt page execution without killing the worker process.

In traditional PHP (Apache mod_php), exit/die terminates the request process. Under ZealPHP/OpenSwoole, exit/die would kill the entire worker. Code that previously used exit (e.g. after a redirect header) should throw HaltException instead. App::executeFile() catches it and treats it as a normal return — any output buffered before the halt is still captured and sent.

Table of Contents

On this page
  • Table Of Contents