From 262b46392f2e5eb837c28ce266888e338646ed4d Mon Sep 17 00:00:00 2001 From: belliash Date: Sun, 22 Jul 2018 20:49:27 +0200 Subject: [PATCH] Enable error reporting --- sapi/cli/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sapi/cli/main.c b/sapi/cli/main.c index 0708cd1..7cf879c 100644 --- a/sapi/cli/main.c +++ b/sapi/cli/main.c @@ -182,6 +182,10 @@ int main(int argc, char **argv) { if(rc != PH7_OK) { Fatal("Error while installing the VM output consumer callback"); } + rc = ph7_vm_config(pVm, PH7_VM_CONFIG_ERR_REPORT, 1, 0); + if(rc != PH7_OK) { + Fatal("Error while configuring the VM error reporting"); + } /* Register script agruments so we can access them later using the $argv[] * array from the compiled PHP program. */