Call to undefined constant should lead to an error.
Všechny kontroly byly úspěšné
The build was successful.

Tento commit je obsažen v:
Rafal Kupiec 2019-04-28 21:44:48 +02:00
rodič 10516fb655
revize 62c315da9e
Podepsáno: belliash
ID GPG klíče: 4E829243E0CFE6B4

Zobrazit soubor

@ -2450,6 +2450,9 @@ static sxi32 VmByteCodeExec(
/* Mark as constant */
pTos->nIdx = SXU32_HIGH;
break;
} else if(pInstr[1].iOp != PH7_OP_MEMBER && pInstr[1].iOp != PH7_OP_NEW && pInstr[2].iOp != PH7_OP_MEMBER && pInstr[1].iOp != PH7_OP_NEW) {
PH7_VmThrowError(&(*pVm), PH7_CTX_ERR,
"Call to undefined constant %s", SyBlobData(&pObj->sBlob));
}
}
PH7_MemObjLoad(pObj, pTos);