Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion res/sqlite-worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@

$out->write(array(
'id' => $data->id,
'result' => $rows
'result' => null
));
} else {
// no matching method found => report soft error and keep stream alive
Expand Down
2 changes: 1 addition & 1 deletion src/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Database extends EventEmitter
*/
public static function open(LoopInterface $loop, $filename, $flags = null)
{
$process = new Process('exec php ' . \escapeshellarg(__DIR__ . '/../res/sqlite-worker.php'));
$process = new Process('exec ' . \escapeshellarg(\PHP_BINARY) . ' ' . \escapeshellarg(__DIR__ . '/../res/sqlite-worker.php'));
$process->start($loop);

$db = new Database($process);
Expand Down