diff options
| author | Guilherme Blanco <guilhermeblanco@hotmail.com> | 2014-11-22 04:57:55 +0000 |
|---|---|---|
| committer | Julien Pauli <jpauli@php.net> | 2014-12-12 17:29:54 +0100 |
| commit | 094d409b3d34c51f49e0121e5ccfe8b2a717aaf6 (patch) | |
| tree | db03022fa8f4eda77977af84c45bcc0eb33d9fa0 /Zend/zend_inheritance.c | |
| parent | 5ad01e1d33fc669608f09cc55e0db373b89a7546 (diff) | |
| download | php-git-094d409b3d34c51f49e0121e5ccfe8b2a717aaf6.tar.gz | |
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.
Diffstat (limited to 'Zend/zend_inheritance.c')
| -rw-r--r-- | Zend/zend_inheritance.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c index cf2a3cb4ad..9b81978e6e 100644 --- a/Zend/zend_inheritance.c +++ b/Zend/zend_inheritance.c @@ -727,7 +727,7 @@ ZEND_API void zend_do_inheritance(zend_class_entry *ce, zend_class_entry *parent && !(parent_ce->ce_flags & ZEND_ACC_INTERFACE)) { zend_error_noreturn(E_COMPILE_ERROR, "Interface %s may not inherit from class (%s)", ce->name->val, parent_ce->name->val); } - if (parent_ce->ce_flags & ZEND_ACC_FINAL_CLASS) { + if (parent_ce->ce_flags & ZEND_ACC_FINAL) { zend_error_noreturn(E_COMPILE_ERROR, "Class %s may not inherit from final class (%s)", ce->name->val, parent_ce->name->val); } |
