This repository has been archived by the owner on Jan 4, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed PECL bug #60877 (no way to set client_id for a GearmanWorker)
- Loading branch information
Herman J. Radtke III
committed
Aug 6, 2012
1 parent
5cb41b6
commit b35e797
Showing
4 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error_reporting = E_ALL | ||
|
||
display_startup_errors = On | ||
|
||
extension=modules/gearman.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--TEST-- | ||
gearman_worker_set_id() | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("gearman")) print "skip"; ?> | ||
--FILE-- | ||
<?php | ||
|
||
$worker= new GearmanWorker(); | ||
$worker->setId('test'); | ||
|
||
$worker = gearman_worker_create(); | ||
gearman_worker_set_id($worker, 'test'); | ||
|
||
echo "OK"; | ||
?> | ||
--EXPECT-- | ||
OK |