We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa4c85d commit 66aba3cCopy full SHA for 66aba3c
Zend/zend_compile.c
@@ -912,7 +912,8 @@ void zend_do_free(znode *op1 TSRMLS_DC)
912
913
int zend_do_verify_access_types(znode *current_access_type, znode *new_modifier)
914
{
915
- if (current_access_type->u.constant.value.lval & ZEND_ACC_PPP_MASK) {
+ if ((new_modifier->u.constant.value.lval & ZEND_ACC_PPP_MASK)
916
+ && ((current_access_type->u.constant.value.lval & ZEND_ACC_PPP_MASK) != (new_modifier->u.constant.value.lval & ZEND_ACC_PPP_MASK))) {
917
zend_error(E_COMPILE_ERROR, "Multiple access type modifiers are not allowed");
918
}
919
return (current_access_type->u.constant.value.lval | new_modifier->u.constant.value.lval);
0 commit comments