-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[PHP7] Removed ZEND_ACC_FINAL_CLASS which is unnecessary. #911
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
[PHP7] Removed ZEND_ACC_FINAL_CLASS which is unnecessary. #911
Conversation
@@ -655,7 +655,7 @@ PHP_MINIT_FUNCTION(mysqli) | |||
|
|||
REGISTER_MYSQLI_CLASS_ENTRY("mysqli_warning", mysqli_warning_class_entry, mysqli_warning_methods); | |||
ce = mysqli_warning_class_entry; | |||
ce->ce_flags |= ZEND_ACC_FINAL_CLASS | ZEND_ACC_PROTECTED; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This configuration was somehow broken... we do not support protected classes (yet).
a710417
to
b3a4c6a
Compare
The documentation doesn't mention that |
@datibbaw In reality, it is acually PDORow that is final, not PDOStatement... sorry for the misconception. |
b3a4c6a
to
6e8abfa
Compare
…me currently defined classes as final which were just not being considered as such before.
6e8abfa
to
db522c4
Compare
Merged |
* origin/master: (37 commits) NEWS NEWS Fix bug #68601 buffer read overflow in gd_gif_in.c Fixed compilation warnings Removed unnecessary checks pcntl_signal_dispatch: Speed up by preventing system calls when unnecessary Merged PR #911. Removed ZEND_ACC_FINAL_CLASS which is unnecessary. This also fixed some currently defined classes as final which were just not being considered as such before. Updated NEWS Updated NEWS Updated NEWS Fix bug #68532: convert.base64-encode omits padding bytes Updated NEWS Updated NEWS Updated NEWS Fixed Bug #65576 (Constructor from trait conflicts with inherited constructor) Updated NEWS Updated NEWS Fix MySQLi tests Fixed gd test ...
* master: Fixed compilation warnings Removed unnecessary checks pcntl_signal_dispatch: Speed up by preventing system calls when unnecessary Merged PR php#911. Removed ZEND_ACC_FINAL_CLASS which is unnecessary. This also fixed some currently defined classes as final which were just not being considered as such before. Updated NEWS Updated NEWS Updated NEWS Fix bug #68532: convert.base64-encode omits padding bytes Updated NEWS Updated NEWS Updated NEWS Fixed Bug #65576 (Constructor from trait conflicts with inherited constructor) Updated NEWS Updated NEWS updated NEWS PowerPC64 support for add and sub with overflow check PowerPC64 support for operators with overflow check Fixed bug #68583 Crash in timeout thread
This also fixed some currently defined classes as final which were just not being considered as such before, such as COM, PDO Statement, DOM XML and MySQLi.
Motivation is initially optimize compilation flags usage for further expansion of class modifiers.