Private methods should not be accessible from child class.
所有检测均成功
The build was successful.

这个提交包含在:
Rafal Kupiec 2019-05-09 13:53:22 +02:00
父节点 5e7d5957e2
当前提交 ea5499f8b3
签署人:: belliash
GPG 密钥 ID: 4E829243E0CFE6B4

查看文件

@ -4175,6 +4175,10 @@ static sxi32 VmByteCodeExec(
&pClass->sName, &sName
);
} else {
if(pNos->iFlags & MEMOBJ_PARENTOBJ && pMeth->iProtection == PH7_CLASS_PROT_PRIVATE) {
PH7_VmThrowError(&(*pVm), PH7_CTX_ERR,
"Access to the class method '%z->%z()' is forbidden", &pClass->sName, &sName);
}
/* Push method name on the stack */
PH7_MemObjRelease(pTos);
SyBlobAppend(&pTos->sBlob, SyStringData(&pMeth->sVmName), SyStringLength(&pMeth->sVmName));