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

Ensure hhvm 4.40 compatibility #40

Merged
merged 6 commits into from
Jan 20, 2020
Merged

Ensure hhvm 4.40 compatibility #40

merged 6 commits into from
Jan 20, 2020

Conversation

lexidor
Copy link
Contributor

@lexidor lexidor commented Jan 18, 2020

The needs_another_plus_plus hack is terrible.
However, I must conditionally increment the pointer depending on

  • Is the LHS of the while's && false, then no.
  • Did we fall out of the loop because pointer is zero, then yes.

The needs_another_plus_plus hack is terrible.
However, I must conditionally increment the pointer depending on
 - Is the LHS of the while's && false, then no.
 - Did we fall out of the loop because pointer is zero, then yes.
@lexidor lexidor requested a review from ssandler January 18, 2020 14:24
@lexidor
Copy link
Contributor Author

lexidor commented Jan 18, 2020

I hope Slack is at least on HHVM 4.15, otherwise, you won't be able to use this.

@@ -32,13 +32,12 @@ public function aliasRecentExpression(string $name): void {
/**
* The FROM clause of the query gets processed first, retrieving data from tables, executing subqueries, and handling joins
* This is also where we build up the $columns list which is commonly used throughout the entire library to map column references to indexes in this dataset
* @reviewer, we don't build up the $columns, since the variable is unused...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yeah, this is from an older version of this before schema was present I think!

Copy link
Contributor

@ssandler ssandler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hooray for the unused variable linter!

@ssandler
Copy link
Contributor

Thank you for doing this 👏

@ssandler ssandler merged commit 647017d into slackhq:master Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants