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

Exception getCode() is not final method #4380

Closed
cagataygurturk opened this issue Dec 3, 2014 · 10 comments
Closed

Exception getCode() is not final method #4380

cagataygurturk opened this issue Dec 3, 2014 · 10 comments

Comments

@cagataygurturk
Copy link

In original PHP Exception class getCode() has final keyword, not overridable. But in HHVM it can be overriden. It's an incompability.

See: http://3v4l.org/j5h20

Related with #4379

@hamidre13
Copy link
Contributor

I will look at it.

@Majkl578
Copy link
Contributor

Majkl578 commented Dec 4, 2014

@hamidre13: Have a look at http://php.net/manual/en/class.exception.php, there is probably more methods that need to be made final.

@hamidre13
Copy link
Contributor

@Majkl578 : I will go through all of them.
Thanks

hamidre13 added a commit to hamidre13/hhvm that referenced this issue Dec 4, 2014
oyamauchi added a commit that referenced this issue Dec 12, 2014
Reviewed By: @paroski, @JoelMarcey

Differential Revision: D1736352

Signature: t1:1736352:1418398167:2b6d408c99a41f5224331b0837b4fb50cb283b5a
@Majkl578
Copy link
Contributor

Hmm, any particular reason why this was reverted? cc @paroski @JoelMarcey

@paulbiss
Copy link
Contributor

@Majkl578 see #4382

@Majkl578
Copy link
Contributor

Yup I read that, this comment is older than the reply there.

@steelbrain
Copy link
Contributor

Shouldn't this be re-opened?

@JoelMarcey
Copy link
Contributor

@steelbrain: We can re-open the issue, good point; but can't re-open the pull request yet until we decide on a good course of action here.

@JoelMarcey JoelMarcey reopened this Dec 12, 2014
@cagataygurturk
Copy link
Author

Actually I do not understand why in Zend engine getCode() has final keyword. This incompatibility does not kill any cats in the world. Anyone that knows the rationale of final keyword in Zend engine?

@paulbiss
Copy link
Contributor

Since cleaning this up will be a mess, and it's probably not going to matter much in the end I'm going to close this issue. If anyone can think of a good reason this method needs to be final please comment below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants