Skip to main content

Module zend

Module zend 

Source
Expand description

Types used to interact with the Zend engine.

Re-exports§

pub use error_observer::BacktraceFrame;observer
pub use error_observer::ErrorInfo;observer
pub use error_observer::ErrorObserver;observer
pub use error_observer::ErrorType;observer

Modules§

ce
Stock class entries registered with PHP, primarily exceptions.

Structs§

BacktraceFrameobserver
A single frame in a PHP backtrace.
BailoutGuard
A guard that drops its value even if a PHP bailout skips its frame.
ErrorInfoobserver
Information about a PHP error passed to observers.
ExceptionInfoobserver
Information about a PHP exception passed to observers.
FcallInfoobserver
Metadata about a function being called.
IniEntryDefs
A static-able table of IniEntryDef.
ModuleAllocations
The heap allocations a ModuleEntry points into.
ModuleGlobals
Thread-safe handle to PHP module globals.
OutputHandlerFlags
What userland may do with a handler started by start_output_handler.
OutputOp
Why PHP runs the output handler. An empty set is a plain write.
StaticModuleEntry
Static storage for a ModuleEntry and everything it points into.
ZendExtensionBuilderobserver
Builder for a zend_extension registration.

Enums§

CatchError
Error returned when the engine did not run the closure to completion.

Traits§

ErrorObserverobserver
Trait for observing PHP errors.
ExceptionObserverobserver
Trait for observing PHP exceptions.
FcallObserverobserver
Trait for observing PHP function calls.
ModuleGlobal
Trait for types used as PHP module globals.
ZendExtensionHandlerobserver
Trait for handling low-level Zend Engine hooks via zend_extension.

Functions§

add_header
Adds a response header and keeps the headers with the same name, like header($header, false).
bailout⚠
Trigger a bailout
output_write
Writes binary data to PHP’s output stream with output buffering support.
php_sapi_name
Get the name of the SAPI module.
printf
Prints to stdout using the php_printf function.
remove_all_headers
Removes all the response headers, like header_remove().
remove_header
Removes the response headers called name, like header_remove($name).
run_handler
Runs the body of an extern "C" handler and keeps every Rust failure on the Rust side of the boundary.
set_header
Sets a response header and removes the headers with the same name, like header($header).
set_response_code
Sets the response status code, like http_response_code($code).
start_output_handler
Pushes handler on top of PHP’s output buffer stack, like ob_start() with a callback.
try_catch
PHP proposes a try catch mechanism in C using setjmp and longjmp (bailout) It stores the arg of setjmp into the bailout field of the global executor If a bailout is triggered, the executor will jump to the setjmp and restore the previous setjmp
try_catch_first
PHP proposes a try catch mechanism in C using setjmp and longjmp (bailout) It stores the arg of setjmp into the bailout field of the global executor If a bailout is triggered, the executor will jump to the setjmp and restore the previous setjmp
write
Writes binary data to PHP’s output stream (stdout).

Type Aliases§

ClassEntry
A PHP class entry.
ExecuteData
Execute data passed when a function is called from PHP.
ExecutorGlobals
Stores global variables used in the PHP executor.
FileGlobals
Stores global variables used in the SAPI.
Function
PHP function.
FunctionEntry
A Zend function entry.
IniEntryDef
A Zend ini entry definition.
ModuleEntry
A Zend module entry, also known as an extension.
ProcessGlobals
Stores global variables used in the PHP executor.
SapiGlobals
Stores global variables used in the SAPI.
SapiHeader
Manage a key/value pair of SAPI headers.
SapiHeaders
Stores SAPI headers. Exposed through SapiGlobals.
SapiModule
Stores the SAPI module used in the PHP executor.
SapiRequestInfo
Information about the current request, as the SAPI gives it.
Stream
A PHP stream
StreamOpener
Stream opener function
StreamWrapper
Wrapper for PHP streams
StreamWrapperOps
Operations that can be performed with a stream wrapper
ZendLinkedList
PHP linked list
ZendObjectHandlers
A set of functions associated with a PHP class.
ZendType
Internal Zend type.