Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<EventListener::setCallbackEventSslContext>
^EventListenerLast updated: Mon, 26 Oct 2026

EventListener::setErrorCallback

(PECL event >= 1.2.6-beta)

EventListener::setErrorCallback — Set event listener's error callback

Description

public function EventListener::setErrorCallback( string $cb ): void

Set event listener's error callback

Parameters

cb

The error callback. Should match the following prototype:

function callback( EventListener $listener = null , mixed $data = null ): void
listener

The EventListener object.

data

User custom data attached to the callback.

Return Values

See Also


<EventListener::setCallbackEventSslContext>
^EventListenerLast updated: Mon, 26 Oct 2026