From f6e2b549b60b56e3eb62085de7ea76124d2b1cfc Mon Sep 17 00:00:00 2001 From: belliash Date: Sat, 6 Apr 2019 09:21:09 +0200 Subject: [PATCH] Access to undefined array index should be reported as error. --- engine/vm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/vm.c b/engine/vm.c index a08eadb..9124a80 100644 --- a/engine/vm.c +++ b/engine/vm.c @@ -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 {