Migrate phpdaemon to PHP 7.2. Don't work a \PHPDaemon\Core\ShellCommand::exec. Down and close websocket connection on lines:
$o->bind('read', function ($o) use (&$data, $o) {
$data .= $o->readUnlimited();
});
I try to commit this lines and next lines:
$o->bind('eof', function ($o) use (&$data, $cb) {
$cb($o, $data);
$o->close();
});
$o->execute($binPath, $args, $env);
Error is disappear and connection of websocket does not close. But exec not work :)
Help me, please.
Migrate phpdaemon to PHP 7.2. Don't work a \PHPDaemon\Core\ShellCommand::exec. Down and close websocket connection on lines: $o->bind('read', function ($o) use (&$data, $o) { $data .= $o->readUnlimited(); }); I try to commit this lines and next lines: $o->bind('eof', function ($o) use (&$data, $cb) { $cb($o, $data); $o->close(); }); $o->execute($binPath, $args, $env); Error is disappear and connection of websocket does not close. But exec not work :) Help me, please.