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
 
<EventBuffer::enableLockingEventBuffer::freeze>
^EventBufferLast updated: Mon, 26 Oct 2026

EventBuffer::expand

(PECL event >= 1.2.6-beta)

EventBuffer::expand — Reserves space in buffer

Description

public function EventBuffer::expand( int $len ): bool

Alters the last chunk of memory in the buffer, or adds a new chunk, such that the buffer is now large enough to contain len bytes without any further allocations.

Parameters

len

The number of bytes to reserve for the buffer

Return Values

Returns true on success or false on failure.


<EventBuffer::enableLockingEventBuffer::freeze>
^EventBufferLast updated: Mon, 26 Oct 2026