gearman_worker_004.phpt 444 B

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