Browse Source

Access to undefined array index should be reported as error.

pull/50/head
Rafal Kupiec 2 years ago
parent
commit
f6e2b549b6
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      engine/vm.c

+ 1
- 2
engine/vm.c View File

@ -2535,8 +2535,7 @@ static sxi32 VmByteCodeExec(
pTos->nIdx = SXU32_HIGH;
}
/* Emit a notice */
PH7_VmThrowError(&(*pVm), PH7_CTX_NOTICE,
"Attempt to access an undefined array index, PH7 is loading NULL");
PH7_VmThrowError(&(*pVm), PH7_CTX_ERR, "Attempt to access an undefined array index");
break;
}
} else {


Loading…
Cancel
Save