From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 13 11:40:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 297DDB61 for ; Wed, 13 Mar 2013 11:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 12932A3E for ; Wed, 13 Mar 2013 11:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r2DBe0o7046702 for ; Wed, 13 Mar 2013 11:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r2DBe0qd046701; Wed, 13 Mar 2013 11:40:00 GMT (envelope-from gnats) Resent-Date: Wed, 13 Mar 2013 11:40:00 GMT Resent-Message-Id: <201303131140.r2DBe0qd046701@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Gasol Wu Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 8C3CB892 for ; Wed, 13 Mar 2013 11:31:35 +0000 (UTC) (envelope-from gasolwu@kkbox.com) Received: from kkbox.com (ip-203-69-67-167.kkcube.com [203.69.67.167]) by mx1.freebsd.org (Postfix) with ESMTP id 5542B9C6 for ; Wed, 13 Mar 2013 11:31:34 +0000 (UTC) Received: by goingmarry.kkbox.com (Postfix, from userid 1033) id 7AA5B74703E; Wed, 13 Mar 2013 19:31:32 +0800 (CST) Message-Id: <20130313113132.7AA5B74703E@goingmarry.kkbox.com> Date: Wed, 13 Mar 2013 19:31:32 +0800 (CST) From: Gasol Wu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/176914: [PATCH] devel/pear-Net_Gearman: [SUMMARIZE CHANGES] Cc: gslin@gslin.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Mar 2013 11:40:01 -0000 >Number: 176914 >Category: ports >Synopsis: [PATCH] devel/pear-Net_Gearman: [SUMMARIZE CHANGES] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Mar 13 11:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Gasol Wu >Release: FreeBSD 9.1-RC1 amd64 >Organization: >Environment: System: FreeBSD goingmarry 9.1-RC1 FreeBSD 9.1-RC1 #0: Tue Aug 14 04:25:06 UTC 2012 >Description: - New header - Fix PHP Strict Standards message as following Resource ID#70 used as offset, casting to integer (70) in /usr/local/share/pear/Net/Gearman/Client.php on line 247 See https://github.com/lenn0x/net_gearman/issues/3 Port maintainer (gslin@gslin.org) is cc'd. Generated with FreeBSD Port Tools 0.99_7 (mode: change, diff: ports) >How-To-Repeat: >Fix: --- pear-Net_Gearman-0.2.3_1.patch begins here --- diff -ruN /usr/ports/devel/pear-Net_Gearman/Makefile ./Makefile --- /usr/ports/devel/pear-Net_Gearman/Makefile 2012-11-17 13:56:39.000000000 +0800 +++ ./Makefile 2013-03-13 17:53:34.000000000 +0800 @@ -1,12 +1,10 @@ -# New ports collection makefile for: php-Net_Gearman -# Date created: 2008-01-10 -# Whom: Gea-Suan Lin -# +# Created by: Gea-Suan Lin # $FreeBSD: ports/devel/pear-Net_Gearman/Makefile,v 1.8 2012/11/17 05:56:39 svnexp Exp $ # PORTNAME= Net_Gearman PORTVERSION= 0.2.3 +PORTREVISION= 1 CATEGORIES= devel pear MAINTAINER= gslin@gslin.org diff -ruN /usr/ports/devel/pear-Net_Gearman/files/patch-Net__Gearman__Client.php ./files/patch-Net__Gearman__Client.php --- /usr/ports/devel/pear-Net_Gearman/files/patch-Net__Gearman__Client.php 1970-01-01 08:00:00.000000000 +0800 +++ ./files/patch-Net__Gearman__Client.php 2013-03-13 17:52:11.000000000 +0800 @@ -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; --- pear-Net_Gearman-0.2.3_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: