diff --git a/engine/api.c b/engine/api.c index bca2b64..d8015ab 100644 --- a/engine/api.c +++ b/engine/api.c @@ -820,10 +820,10 @@ int ph7_compile_file(ph7 *pEngine, const char *zFilePath, ph7_vm **ppOutVm) { return rc; } /* - * [CAPIREF: ph7_vm_dump_v2()] + * [CAPIREF: ph7_vm_dump()] * Please refer to the official documentation for function purpose and expected parameters. */ -int ph7_vm_dump_v2(ph7_vm *pVm, int (*xConsumer)(const void *, unsigned int, void *), void *pUserData) { +int ph7_vm_dump(ph7_vm *pVm, int (*xConsumer)(const void *, unsigned int, void *), void *pUserData) { int rc; /* Ticket 1433-002: NULL VM is harmless operation */ if(PH7_VM_MISUSE(pVm)) { diff --git a/sapi/cli/main.c b/sapi/cli/main.c index c9f8311..3186c41 100644 --- a/sapi/cli/main.c +++ b/sapi/cli/main.c @@ -207,7 +207,7 @@ int main(int argc, char **argv) { } if(dump_vm) { /* Dump PH7 byte-code instructions */ - ph7_vm_dump_v2(pVm, + ph7_vm_dump(pVm, Output_Consumer, /* Dump consumer callback */ 0 );