--TEST-- GEARMAN_WORKER_STOP_WAIT_ON_SIGNAL constant and addOptions() --SKIPIF-- --FILE-- addOptions(GEARMAN_WORKER_STOP_WAIT_ON_SIGNAL); $after = $worker->options(); var_dump(($after & GEARMAN_WORKER_STOP_WAIT_ON_SIGNAL) !== 0); $worker->removeOptions(GEARMAN_WORKER_STOP_WAIT_ON_SIGNAL); $removed = $worker->options(); var_dump(($removed & GEARMAN_WORKER_STOP_WAIT_ON_SIGNAL) === 0); print "OK"; ?> --EXPECT-- bool(true) bool(true) OK