mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Prevent possible double inheritance (ext/opcache/tests/bug67215.phpt)
This commit is contained in:
parent
61406a527f
commit
a53d82daa6
1 changed files with 4 additions and 0 deletions
|
@ -975,6 +975,10 @@ ZEND_API zend_class_entry *do_bind_inherited_class(const zend_op_array *op_array
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (zend_hash_exists(class_table, Z_STR_P(op2))) {
|
||||
zend_error_noreturn(E_COMPILE_ERROR, "Cannot redeclare class %s", ce->name->val);
|
||||
}
|
||||
|
||||
zend_do_inheritance(ce, parent_ce);
|
||||
|
||||
ce->refcount++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue