Skip to content

Commit

Permalink
Fixed crashes in ZTS build introduced by 689c6fb
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Sep 18, 2018
1 parent d918e07 commit 2df91cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Zend/zend_compile.c
Expand Up @@ -6349,13 +6349,13 @@ void zend_compile_class_decl(zend_ast *ast, zend_bool toplevel) /* {{{ */
) {
if (EXPECTED(zend_hash_add_ptr(CG(class_table), lcname, ce) != NULL)) {
CG(zend_lineno) = decl->end_lineno;
ce->ce_flags |= ZEND_ACC_LINKED;
zend_do_inheritance(ce, parent_ce);
if ((ce->ce_flags & (ZEND_ACC_IMPLICIT_ABSTRACT_CLASS|ZEND_ACC_INTERFACE|ZEND_ACC_TRAIT|ZEND_ACC_EXPLICIT_ABSTRACT_CLASS)) == ZEND_ACC_IMPLICIT_ABSTRACT_CLASS) {
zend_verify_abstract_class(ce);
}
CG(zend_lineno) = ast->lineno;
zend_string_release(lcname);
ce->ce_flags |= ZEND_ACC_LINKED;
return;
}
}
Expand Down

0 comments on commit 2df91cb

Please sign in to comment.