gearman_job_003.phpt 294 B

123456789101112131415161718192021
  1. --TEST--
  2. unserialize(serialize(GearmanJob))
  3. --SKIPIF--
  4. <?php if (!extension_loaded("gearman")) print "skip"; ?>
  5. --FILE--
  6. <?php
  7. $i = 0;
  8. while ($i <= 5) {
  9. echo $i;
  10. $job = new GearmanJob();
  11. unserialize(serialize($job));
  12. $i++;
  13. }
  14. print PHP_EOL;
  15. print "OK";
  16. ?>
  17. --EXPECT--
  18. 012345
  19. OK