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);?>
(PECL gearman >= 0.6.0)
GearmanClient::addOptions — Añade opciones al cliente
Añade una o más opciones a las que hay actualmente.
options
Opciones a añadir
Siempre retorna true
.
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);?>