View | Details | Raw Unified | Return to bug 280512 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/phabricator/Makefile (-2 / +2 lines)
Lines 1-6 Link Here
1
PORTNAME=	phabricator
1
PORTNAME=	phabricator
2
PORTVERSION=	20211218
2
PORTVERSION=	20211218
3
PORTREVISION=	3
3
PORTREVISION=	4
4
CATEGORIES=	devel
4
CATEGORIES=	devel
5
PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
5
PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
6
6
Lines 14-20 LICENSE_FILE= ${WRKSRC}/LICENSE Link Here
14
RUN_DEPENDS=	arcanist-lib${PHP_PKGNAMESUFFIX}>=20210113_4:devel/arcanist-lib@${PHP_FLAVOR} \
14
RUN_DEPENDS=	arcanist-lib${PHP_PKGNAMESUFFIX}>=20210113_4:devel/arcanist-lib@${PHP_FLAVOR} \
15
		git:devel/git
15
		git:devel/git
16
16
17
USES=		cpe php:cli,flavors shebangfix
17
USES=		cpe dos2unix php:cli,flavors shebangfix
18
CPE_VENDOR=	phacility
18
CPE_VENDOR=	phacility
19
USE_GITHUB=	yes
19
USE_GITHUB=	yes
20
GH_ACCOUNT=	phacility
20
GH_ACCOUNT=	phacility
(-)b/devel/phabricator/files/patch-externals_phpmailer_class.phpmailer-lite.php (+11 lines)
Added Link Here
1
--- externals/phpmailer/class.phpmailer-lite.php.orig	2024-07-30 15:40:58 UTC
2
+++ externals/phpmailer/class.phpmailer-lite.php
3
@@ -1492,7 +1492,7 @@ class PHPMailerLite {
4
     $eol = "\r\n";
5
     $escape = '=';
6
     $output = '';
7
-    while( list(, $line) = each($lines) ) {
8
+    foreach ($lines as $i => $line) {
9
       $linlen = strlen($line);
10
       $newline = '';
11
       for($i = 0; $i < $linlen; $i++) {
(-)b/devel/phabricator/files/patch-externals_phpmailer_class.phpmailer.php (+11 lines)
Added Link Here
1
--- externals/phpmailer/class.phpmailer.php.orig	2024-07-30 15:40:58 UTC
2
+++ externals/phpmailer/class.phpmailer.php
3
@@ -1624,7 +1624,7 @@ class PHPMailer {
4
     $eol = "\r\n";
5
     $escape = '=';
6
     $output = '';
7
-    while( list(, $line) = each($lines) ) {
8
+    foreach ($lines as $i => $line) {
9
       $linlen = strlen($line);
10
       $newline = '';
11
       for($i = 0; $i < $linlen; $i++) {
(-)b/devel/phabricator/files/patch-externals_phpmailer_class.smtp.php (+20 lines)
Added Link Here
1
--- externals/phpmailer/class.smtp.php.orig	2024-07-30 15:40:58 UTC
2
+++ externals/phpmailer/class.smtp.php
3
@@ -385,7 +385,7 @@ class SMTP {
4
 
5
     $max_line_length = 998; // used below; set here for ease in change
6
 
7
-    while(list(,$line) = @each($lines)) {
8
+    foreach ($lines as $i => $line) {
9
       $lines_out = null;
10
       if($line == "" && $in_headers) {
11
         $in_headers = false;
12
@@ -414,7 +414,7 @@ class SMTP {
13
       $lines_out[] = $line;
14
 
15
       // send the lines to the server
16
-      while(list(,$line_out) = @each($lines_out)) {
17
+      foreach ($lines_out as $i => $line_out) {
18
         if(strlen($line_out) > 0)
19
         {
20
           if(substr($line_out, 0, 1) == ".") {

Return to bug 280512