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
This commit is contained in:
Michael Gmelin
2019-09-30 09:12:53 +00:00
parent b4789211bf
commit 1f04bcd099
2 changed files with 12 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
PORTNAME= libphutil
PORTVERSION= 20190831
PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}

View File

@@ -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;
}