[llvm] 11a2b44 - add arcanist patch to fix arc diff
Aditya Kumar via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 1 12:14:40 PST 2023
Author: Aditya Kumar
Date: 2023-02-01T12:14:25-08:00
New Revision: 11a2b44ad412c3b94ca4559b7b813f1a3651e350
URL: https://github.com/llvm/llvm-project/commit/11a2b44ad412c3b94ca4559b7b813f1a3651e350
DIFF: https://github.com/llvm/llvm-project/commit/11a2b44ad412c3b94ca4559b7b813f1a3651e350.diff
LOG: add arcanist patch to fix arc diff
Another patch to fix arcanist on newer php versions. See previous patch
here: https://reviews.llvm.org/D129232
Authored by: Justin Stitt (justinstitt)
Reviewed by: nickdesaulniers, hiraditya, foad
Differential Revision: https://reviews.llvm.org/D131699
Added:
llvm/utils/phabricator/0002-Fix-PHP-8.1.5-empty-strlen-with-arc-diff-verbatim.patch
Modified:
Removed:
################################################################################
diff --git a/llvm/utils/phabricator/0002-Fix-PHP-8.1.5-empty-strlen-with-arc-
diff -verbatim.patch b/llvm/utils/phabricator/0002-Fix-PHP-8.1.5-empty-strlen-with-arc-
diff -verbatim.patch
new file mode 100644
index 0000000000000..75fd75a7a0735
--- /dev/null
+++ b/llvm/utils/phabricator/0002-Fix-PHP-8.1.5-empty-strlen-with-arc-
diff -verbatim.patch
@@ -0,0 +1,36 @@
+From 3a6e789fe893fc8c855826994d044d17a281fd85 Mon Sep 17 00:00:00 2001
+From: Justin Stitt <justinstitt at google.com>
+Date: Thu, 11 Aug 2022 10:26:21 -0700
+Subject: [PATCH] Fix PHP 8.1.5 empty strlen with <$ arc
diff --verbatim>
+
+Fixes the following observed error with PHP 8.1.5:
+| EXCEPTION: (RuntimeException) strlen(): Passing null to parameter #1 ($string) of type string is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]
+| arcanist(head=master, ref.master=680fe6d06e5a)
+| #0 PhutilErrorHandler::handleError(integer, string, string, integer) called at [<arcanist>/src/workflow/ArcanistDiffWorkflow.php:2364]
+| #1 ArcanistDiffWorkflow::getDiffOntoTargets() called at [<arcanist>/src/workflow/ArcanistDiffWorkflow.php:2342]
+| #2 ArcanistDiffWorkflow::updateOntoDiffProperty() called at [<arcanist>/src/workflow/ArcanistDiffWorkflow.php:409]
+| #3 ArcanistDiffWorkflow::run() called at [<arcanist>/scripts/arcanist.php:427]
+
+Link: https://secure.phabricator.com/book/phabcontrib/article/contributing_code/
+Link: https://reviews.llvm.org/D129232#3634072
+Signed-off-by: Justin Stitt <justinstitt at google.com>
+---
+ src/workflow/ArcanistDiffWorkflow.php | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+
diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php
+index 5b8ff40c..1b717b23 100644
+--- a/src/workflow/ArcanistDiffWorkflow.php
++++ b/src/workflow/ArcanistDiffWorkflow.php
+@@ -2361,7 +2361,7 @@ EOTEXT
+
+ // If we track an upstream branch either directly or indirectly, use that.
+ $branch = $api->getBranchName();
+- if (strlen($branch)) {
++ if (phutil_nonempty_string($branch) && strlen($branch)) {
+ $upstream_path = $api->getPathToUpstream($branch);
+ $remote_branch = $upstream_path->getRemoteBranchName();
+ if ($remote_branch !== null) {
+--
+2.37.1.559.g78731f0fdb-goog
+
More information about the llvm-commits
mailing list