Skip site navigation (1)Skip section navigation (2)
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:   ports/176914: [PATCH] devel/pear-Net_Gearman: [SUMMARIZE CHANGES]
Message-ID:  <20130313113132.7AA5B74703E@goingmarry.kkbox.com>
Resent-Message-ID: <201303131140.r2DBe0qd046701@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130313113132.7AA5B74703E>