Received: by mail.netbsd.org (Postfix, from userid 605) id C3E3284D2D; Sun, 7 Mar 2021 13:14:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 084AA84D27 for ; Sun, 7 Mar 2021 13:14:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id TUiL_Tc6ukBy for ; Sun, 7 Mar 2021 13:14:08 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 5460A84CE3 for ; Sun, 7 Mar 2021 13:14:08 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 472D8FA95; Sun, 7 Mar 2021 13:14:08 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_161512284866830" MIME-Version: 1.0 Date: Sun, 7 Mar 2021 13:14:08 +0000 From: "Takahiro Kambe" Subject: CVS commit: pkgsrc/lang/pear/files To: pkgsrc-changes@NetBSD.org Reply-To: taca@netbsd.org X-Mailer: log_accum Message-Id: <20210307131408.472D8FA95@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_161512284866830 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: taca Date: Sun Mar 7 13:14:08 UTC 2021 Modified Files: pkgsrc/lang/pear/files: go-pear.php Log Message: lang/pear/files/go-pear.php: use modern PHP syntax Use modern PHP syntax which cause problem with PHP 8. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 pkgsrc/lang/pear/files/go-pear.php Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_161512284866830 Content-Disposition: inline Content-Length: 835 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/pear/files/go-pear.php diff -u pkgsrc/lang/pear/files/go-pear.php:1.4 pkgsrc/lang/pear/files/go-pear.php:1.5 --- pkgsrc/lang/pear/files/go-pear.php:1.4 Sat Aug 20 14:02:29 2011 +++ pkgsrc/lang/pear/files/go-pear.php Sun Mar 7 13:14:08 2021 @@ -35,7 +35,7 @@ * @author Tias Guns */ -/* $NetBSD: go-pear.php,v 1.4 2011/08/20 14:02:29 taca Exp $ */ +/* $NetBSD: go-pear.php,v 1.5 2021/03/07 13:14:08 taca Exp $ */ $sapi_name = php_sapi_name(); @@ -822,7 +822,7 @@ function which($program, $dont_search_in if (!strlen($dir)) { continue; } - if ($dir{strlen($dir) - 1} != '\\') { + if ($dir[strlen($dir) - 1] != '\\') { $dir .= '\\'; } $tmp = $dir . $program; --_----------=_161512284866830--