PHP 8.1.28 Released!

GearmanClient::addOptions

(PECL gearman >= 0.6.0)

GearmanClient::addOptionsAñade opciones al cliente

Descripción

public GearmanClient::addOptions(int $options): bool

Añade una o más opciones a las que hay actualmente.

Parámetros

options

Opciones a añadir

Valores devueltos

Siempre retorna true.

add a note

User Contributed Notes 1 note

up
2
goran dot v dot miskovic at gmail dot com
11 years ago
To add multiple options at once use pipe separated list.
<?php
$client
= new GearmanClient();
$client->addOptions(GEARMAN_CLIENT_NON_BLOCKING | GEARMAN_CLIENT_FREE_TASKS | GEARMAN_CLIENT_UNBUFFERED_RESULT);
?>
To Top