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
 
<Event::addTimerEvent::del>
^EventLast updated: Mon, 26 Oct 2026

Event::__construct

(PECL event >= 1.2.6-beta)

Event::__construct — Constructs Event object

Description

public function Event::__construct(
     EventBase $base ,
     mixed $fd ,
     int $what ,
     callable $cb ,
     mixed $arg = NULL
)

Constructs Event object.

Parameters

base

The event base to associate with.

fd

stream resource, socket resource, or numeric file descriptor. For timer events pass -1. For signal events pass the signal number, e.g. SIGHUP.

what

Event flags. See Event flags.

cb

The event callback. See Event callbacks.

arg

Custom data. If specified, it will be passed to the callback when event triggers.

See Also


<Event::addTimerEvent::del>
^EventLast updated: Mon, 26 Oct 2026