Attempt to fix '$this' and '$parent' constructs.
All checks were successful
The build was successful.

This commit is contained in:
2019-05-10 23:45:32 +02:00
parent ea5499f8b3
commit 5256dda922
2 changed files with 19 additions and 5 deletions

View File

@@ -260,11 +260,9 @@ PH7_PRIVATE sxi32 PH7_ClassInherit(ph7_vm *pVm, ph7_class *pSub, ph7_class *pBas
continue;
}
/* Install the attribute */
if(pAttr->iProtection != PH7_CLASS_PROT_PRIVATE) {
rc = SyHashInsert(&pSub->hAttr, (const void *)pName->zString, pName->nByte, pAttr);
if(rc != SXRET_OK) {
return rc;
}
rc = SyHashInsert(&pSub->hAttr, (const void *)pName->zString, pName->nByte, pAttr);
if(rc != SXRET_OK) {
return rc;
}
}
SyHashResetLoopCursor(&pBase->hMethod);