pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/pear/files lang/pear/files/go-pear.php: use moder...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8475737e7840
branches:  trunk
changeset: 448325:8475737e7840
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Mar 07 13:14:08 2021 +0000

description:
lang/pear/files/go-pear.php: use modern PHP syntax

Use modern PHP syntax which cause problem with PHP 8.

diffstat:

 lang/pear/files/go-pear.php |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r f1922c46578a -r 8475737e7840 lang/pear/files/go-pear.php
--- a/lang/pear/files/go-pear.php       Sun Mar 07 13:11:06 2021 +0000
+++ b/lang/pear/files/go-pear.php       Sun Mar 07 13:14:08 2021 +0000
@@ -35,7 +35,7 @@
  * @author     Tias Guns <tias%ulyssis.org@localhost>
  */
 
-/* $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 @@
             if (!strlen($dir)) {
                 continue;
             }
-            if ($dir{strlen($dir) - 1} != '\\') {
+            if ($dir[strlen($dir) - 1] != '\\') {
                 $dir .= '\\';
             }
             $tmp = $dir . $program;



Home | Main Index | Thread Index | Old Index