From gasolwu@kkbox.com  Wed Mar 13 11:31:35 2013
Return-Path: <gasolwu@kkbox.com>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 8C3CB892
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <gasol.wu@gmail.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc: gslin@gslin.org
Subject: [PATCH] devel/pear-Net_Gearman: [SUMMARIZE CHANGES]
X-Send-Pr-Version: 3.113
X-GNATS-Notify: gslin@gslin.org

>Number:         176914
>Category:       ports
>Synopsis:       [PATCH] devel/pear-Net_Gearman: [SUMMARIZE CHANGES]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 13 11:40:00 UTC 2013
>Closed-Date:    Fri May 10 14:36:57 UTC 2013
>Last-Modified:  Fri May 10 14:40:11 UTC 2013
>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 <gslin@gslin.org>
-#
+# Created by: Gea-Suan Lin <gslin@gslin.org>
 # $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:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Mar 13 11:40:08 UTC 2013 
Responsible-Changed-Why:  
miwi@ wants this port PRs (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176914 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Wed Mar 13 11:40:10 UTC 2013 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176914 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: gslin@gslin.org
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/176914: [PATCH] devel/pear-Net_Gearman: [SUMMARIZE CHANGES]
Date: Wed, 13 Mar 2013 11:40:09 UT

 Maintainer of devel/pear-Net_Gearman,
 
 Please note that PR ports/176914 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/176914
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: Gea-Suan Lin <gslin@gslin.org>
To: bug-followup@FreeBSD.org
Cc: gslin@gslin.org
Subject: Re: ports/176914: [PATCH] devel/pear-Net_Gearman: [SUMMARIZE CHANGES]
Date: Tue, 2 Apr 2013 10:34:26 +0800

 Please commit it, thanks.
 
 On Wed, Mar 13, 2013 at 11:40:09AM +0000, Edwin Groothuis wrote:
 > Maintainer of devel/pear-Net_Gearman,
 > 
 > Please note that PR ports/176914 has just been submitted.
 > 
 > If it contains a patch for an upgrade, an enhancement or a bug fix
 > you agree on, reply to this email stating that you approve the patch
 > and a committer will take care of it.
 > 
 > The full text of the PR can be found at:
 >     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/176914
 > 
 > -- 
 > Edwin Groothuis via the GNATS Auto Assign Tool
 > edwin@FreeBSD.org
 
 -- 
 * Gea-Suan Lin  (public key: Using https://keyserver.pgp.com/ to search)
 * If you cannot convince them, confuse them.           -- Harry S Truman
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Fri May 10 14:36:56 UTC 2013 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176914 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/176914: commit references a PR
Date: Fri, 10 May 2013 14:37:00 +0000 (UTC)

 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;
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
