Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Add php support #3

Merged
merged 9 commits into from
Oct 8, 2015
Merged

Add php support #3

merged 9 commits into from
Oct 8, 2015

Conversation

jacooobi
Copy link
Contributor

No description provided.

end

end
rescue *EXCEPTIONS
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the intention really to quietly ignore these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've reused the code from the old platform and not removing the rescue seemed to be a good idea. In the past, the rescue block was used to store values like timestamp on Statsd object, which at the moment is not included in the project.

Copy link
Contributor

Choose a reason for hiding this comment

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

Gotcha. The situation is slightly different in engines land:

The engine itself shouldn't be concerned with exception handling (unless there are expected/ignorable exceptions) or timeouts. The application that's running the engine will handle all of that.

In short, I think you can remove this rescue and any timeout-related logic.

@BlakeWilliams
Copy link
Contributor

@pbrisbin Is this good to merge or should I open a new PR with the rescues removed?

@jacooobi
Copy link
Contributor Author

jacooobi commented Oct 6, 2015

@pbrisbin @BlakeWilliams I've removed the rescue/timeout blocks in the PHP module. Please note that the same logic resides in Javascript module as well but I think it should be removed in a separated PR.

@BlakeWilliams
Copy link
Contributor

@pbrisbin Merging this unless you have any objections.

@jacobi007 Want to squash or is this good to go?

@pbrisbin
Copy link
Contributor

pbrisbin commented Oct 7, 2015

@BlakeWilliams fine with me. To me, new engine PRs arent' super valuable to review closely because it's so much green. As long as they go through appropriate QA, I'd rather merge it and focus any code review on the bugfix PRs that come out after.

@BlakeWilliams
Copy link
Contributor

Sounds good, I'll get this merged in soon then.

mxie added a commit that referenced this pull request Oct 8, 2015
@mxie mxie merged commit 826ba27 into codeclimate:master Oct 8, 2015
maxjacobson referenced this pull request May 24, 2017
Confirmed via this helpful report that we're mis-referencing php's nan.
stderr gets flooded with notices. With this change, the notices go away
and everything seems to work.

#186 (comment)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants