Do not allow to call statically a non-static method.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
c4416ef631
commit
d3d3dff673
|
@ -4295,6 +4295,9 @@ static sxi32 VmByteCodeExec(
|
||||||
VmPopOperand(&pTos, 1);
|
VmPopOperand(&pTos, 1);
|
||||||
}
|
}
|
||||||
PH7_MemObjRelease(pTos);
|
PH7_MemObjRelease(pTos);
|
||||||
|
} else if((pMeth->iFlags & PH7_CLASS_ATTR_STATIC) == 0) {
|
||||||
|
PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Attempt to call statically a non-static method '%z::%z()'",
|
||||||
|
&pClass->sName, &sName);
|
||||||
} else {
|
} else {
|
||||||
/* Push method name on the stack */
|
/* Push method name on the stack */
|
||||||
PH7_MemObjRelease(pTos);
|
PH7_MemObjRelease(pTos);
|
||||||
|
|
Loading…
Reference in New Issue