略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: EventBufferEvent::free

2024-12-22

EventBufferEvent::free

(PECL event >= 1.2.6-beta)

EventBufferEvent::freeFree a buffer event

说明

public EventBufferEvent::free(): void

Free resources allocated by buffer event.

Usually there is no need to call this method, since normally it is done within internal object destructors. However, sometimes we have a long-time script allocating lots of instances, or a script with a heavy memory usage, where we need to free resources as soon as possible. In such cases EventBufferEvent::free() may be used to protect the script against running up to the memory_limit .

参数

此函数没有参数。

返回值

没有返回值。

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/eventbufferevent.free.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3