gearman_worker_005.phpt 453 B

12345678910111213141516171819
  1. --TEST--
  2. gearman_worker_options()
  3. --SKIPIF--
  4. <?php if (!extension_loaded("gearman")) print "skip"; ?>
  5. --FILE--
  6. <?php
  7. $worker = new GearmanWorker();
  8. print "GearmanWorker::options (OO): " . $worker->options() . PHP_EOL;
  9. $worker2 = gearman_worker_create();
  10. print "gearman_worker_options (Procedural): " . gearman_worker_options($worker2) . PHP_EOL;
  11. print "OK";
  12. ?>
  13. --EXPECT--
  14. GearmanWorker::options (OO): 644
  15. gearman_worker_options (Procedural): 644
  16. OK