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 varias opciones a las ya existentes.
option
       Las opciones a añadir.
       Una de las constantes siguientes o la combinación de constantes utilizando
       el operador de manipulación de bits (|
):
       GEARMAN_CLIENT_GENERATE_UNIQUE,
       GEARMAN_CLIENT_NON_BLOCKING,
       GEARMAN_CLIENT_UNBUFFERED_RESULT o
       GEARMAN_CLIENT_FREE_TASKS.
      
   Devuelve siempre 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);
?>