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);
?>
GearmanClient::addOptions
(PECL gearman >= 0.6.0)
GearmanClient::addOptions — Añade opciones al cliente
Descripción
public bool GearmanClient::addOptions
( int
$options
)Añade una o más opciones a las que hay actualmente.
Parámetros
-
options -
Opciones a añadir
Valores devueltos
Siempre retorna TRUE.
goran dot v dot miskovic at gmail dot com ¶
9 months ago
