Date: Fri, 10 May 2013 14:36:47 +0000 (UTC) From: Martin Wilke <miwi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r317810 - in head/devel/pear-Net_Gearman: . files Message-ID: <201305101436.r4AEalxC011312@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: miwi Date: Fri May 10 14:36:46 2013 New Revision: 317810 URL: http://svnweb.freebsd.org/changeset/ports/317810 Log: - Fix build PR: 176914 Submitted by: Gasol Wu <gasol.wu@gmail.com> Approved by: Ports Fury Added: head/devel/pear-Net_Gearman/files/ head/devel/pear-Net_Gearman/files/patch-Net__Gearman__Client.php (contents, props changed) Modified: head/devel/pear-Net_Gearman/Makefile Modified: head/devel/pear-Net_Gearman/Makefile ============================================================================== --- head/devel/pear-Net_Gearman/Makefile Fri May 10 14:34:42 2013 (r317809) +++ head/devel/pear-Net_Gearman/Makefile Fri May 10 14:36:46 2013 (r317810) @@ -3,6 +3,7 @@ PORTNAME= Net_Gearman PORTVERSION= 0.2.3 +PORTREVISION= 1 CATEGORIES= devel pear MAINTAINER= gslin@gslin.org Added: head/devel/pear-Net_Gearman/files/patch-Net__Gearman__Client.php ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pear-Net_Gearman/files/patch-Net__Gearman__Client.php Fri May 10 14:36:46 2013 (r317810) @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305101436.r4AEalxC011312>