ports/devel/pear/files/patch-php72
Jochen Neumeister 7237ad2201 add patch-php72, now devel/pear is PHP 7.2 ready
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D13233
2017-12-01 22:09:52 +00:00

24 lines
792 B
Text

From 85ebf1e6190681820634c891af624bacde49a017 Mon Sep 17 00:00:00 2001
From: Andy Thompson <me@andytson.com>
Date: Sun, 11 Jun 2017 09:25:12 +0100
Subject: [PATCH] Remove unneeded by-reference on built-in fuction
PHP 7.2 is complaining about this. It also doesn't appear to be
needed, as the argument array items aren't being passed by-reference.
---
Archive/Tar.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Archive/Tar.php b/Archive/Tar.php
index 202fffb..0bd1c6c 100644
--- go-pear-bundle/Tar.php
+++ go-pear-bundle/Tar.php
@@ -659,7 +659,7 @@ public function setAttribute()
}
// ----- Get the arguments
- $v_att_list = & func_get_args();
+ $v_att_list = func_get_args();
// ----- Read the attributes
$i = 0;