Skip to content

Conversation

@astrophysik
Copy link
Contributor

Add return statements for errors and for successful completion

@astrophysik astrophysik changed the title add return statements in wait_concurrently as in kphp add return statements in *wait_concurrently* as in kphp Sep 21, 2022
@astrophysik astrophysik changed the title add return statements in *wait_concurrently* as in kphp add return statements in 'wait_concurrently' as in kphp Sep 21, 2022
@astrophysik astrophysik changed the title add return statements in 'wait_concurrently' as in kphp add return statements in wait_concurrently as in kphp Sep 21, 2022
@DrDet DrDet self-requested a review October 1, 2022 15:46
Copy link
Contributor

@DrDet DrDet left a comment

Choose a reason for hiding this comment

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

Very strange logic inside the function.

return wait($id);
}

function wait_concurrently($id) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you figure out what's going on in this function?
As far as I can see, it always requests undefined index at line 333, and the condition !$waiting[$id] is always true

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.

3 participants