gearman_client_002.phpt 503 B

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