mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
- Fix build
PR: 176914 Submitted by: Gasol Wu <gasol.wu@gmail.com> Approved by: Ports Fury
This commit is contained in:
parent
054cd56e4a
commit
cb155a7e5d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=317810
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= Net_Gearman
|
||||
PORTVERSION= 0.2.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel pear
|
||||
|
||||
MAINTAINER= gslin@gslin.org
|
||||
|
26
devel/pear-Net_Gearman/files/patch-Net__Gearman__Client.php
Normal file
26
devel/pear-Net_Gearman/files/patch-Net__Gearman__Client.php
Normal file
@ -0,0 +1,26 @@
|
||||
--- ./Net/Gearman/Client.php.orig 2013-03-13 17:50:59.000000000 +0800
|
||||
+++ ./Net/Gearman/Client.php 2013-03-13 17:51:18.000000000 +0800
|
||||
@@ -166,11 +166,11 @@
|
||||
$s = $this->getConnection();
|
||||
Net_Gearman_Connection::send($s, $type, $params);
|
||||
|
||||
- if (!is_array(Net_Gearman_Connection::$waiting[$s])) {
|
||||
- Net_Gearman_Connection::$waiting[$s] = array();
|
||||
+ if (!is_array(Net_Gearman_Connection::$waiting[(int) $s])) {
|
||||
+ Net_Gearman_Connection::$waiting[(int) $s] = array();
|
||||
}
|
||||
|
||||
- array_push(Net_Gearman_Connection::$waiting[$s], $task);
|
||||
+ array_push(Net_Gearman_Connection::$waiting[(int) $s], $task);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -244,7 +244,7 @@
|
||||
$task->fail();
|
||||
break;
|
||||
case 'job_created':
|
||||
- $task = array_shift(Net_Gearman_Connection::$waiting[$s]);
|
||||
+ $task = array_shift(Net_Gearman_Connection::$waiting[(int) $s]);
|
||||
$task->handle = $resp['data']['handle'];
|
||||
if ($task->type == Net_Gearman_Task::JOB_BACKGROUND) {
|
||||
$task->finished = true;
|
Loading…
Reference in New Issue
Block a user