Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 2019 09:12:54 +0000 (UTC)
From:      Michael Gmelin <grembo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r513334 - in head/devel/libphutil: . files
Message-ID:  <201909300912.x8U9Csw9073627@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: grembo
Date: Mon Sep 30 09:12:53 2019
New Revision: 513334
URL: https://svnweb.freebsd.org/changeset/ports/513334

Log:
  Fix use of implode() to avoid warnings when running on newer versions
  of PHP.
  
  See also https://www.php.net/manual/en/function.implode.php
  Committed with minor changes.
  
  PR:		240931
  Submitted by:	lutz@donnerhacke.de

Added:
  head/devel/libphutil/files/
  head/devel/libphutil/files/patch-src_utils_utils.php   (contents, props changed)
Modified:
  head/devel/libphutil/Makefile

Modified: head/devel/libphutil/Makefile
==============================================================================
--- head/devel/libphutil/Makefile	Mon Sep 30 09:07:19 2019	(r513333)
+++ head/devel/libphutil/Makefile	Mon Sep 30 09:12:53 2019	(r513334)
@@ -2,6 +2,7 @@
 
 PORTNAME=	libphutil
 PORTVERSION=	20190831
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMEPREFIX=	${PHP_PKGNAMEPREFIX}
 

Added: head/devel/libphutil/files/patch-src_utils_utils.php
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libphutil/files/patch-src_utils_utils.php	Mon Sep 30 09:12:53 2019	(r513334)
@@ -0,0 +1,11 @@
+--- src/utils/utils.php.orig	2019-08-31 14:54:35 UTC
++++ src/utils/utils.php
+@@ -1703,7 +1703,7 @@ function phutil_build_http_querystring_f
+     list($key, $value) = phutil_http_parameter_pair($key, $value);
+     $query[] = rawurlencode($key).'='.rawurlencode($value);
+   }
+-  $query = implode($query, '&');
++  $query = implode('&', $query);
+ 
+   return $query;
+ }



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