Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid calling strlen(null) when there is no branch #272

Closed
wants to merge 1 commit into from

Conversation

rprichard
Copy link

I see recent PHP 8.1 patches to upstream arcanist, but no way to submit fixes.

The https://secure.phabricator.com/book/phabcontrib/article/contributing_code/ link just reads, "Effective June 1, 2021: Phabricator is no longer actively maintained, and no longer accepting contributions."

https://secure.phabricator.com/login reads, "NOTE: You can not register a new account here. You must be invited to join the upstream."

Anyway, I don't care about being credited for a one-word patch, so feel free to make a Phabricator revision and disregard this pull request.

I hit this bug when I ran git rebase followed by arc diff:

$ arc --trace diff
...
[2022-06-08 01:57:09] 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=85c953ebe4a6)
  #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]

@epriestley
Copy link
Member

... but no way to submit fixes.

This is correct. There is no way to submit fixes.

@epriestley epriestley closed this Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants