gearman_client_004.phpt 487 B

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