phpv8/v8js

Windows CLI process never ends

reeperbahnause opened this issue · 1 comments

Hi,

i just testet the extension unsing this version:
https://phpdev.toolsforresearch.com/php-7.4.28-Win32-vc15-x64.zip

Installation worked just fine and the first tests have been correct but the CLI process never finishes.

Here is my example:

<?php

$v8 = new V8Js();
$v8->sayHello = function(string $name = 'World') {
    echo "Hello ".$name." Greetings from PHP" . PHP_EOL;
};
try {
    $v8->executeString("PHP.sayHello('again');", 'basic.js');
} catch (\Exception $e) {
    var_dump($e);
}

The output is:

Hello again Greetings from PHP

but as mentioned the process does not end.

Do I miss something?

I have same error,the cli process never die