Skip to content

Commit 052b691

Browse files
authored
Merge pull request #6 from clue-labs/bin
Use PHP_BINARY constant to detect current PHP executable (Travis etc.)
2 parents 7fd9f00 + 22b1de8 commit 052b691

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

res/sqlite-worker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177

178178
$out->write(array(
179179
'id' => $data->id,
180-
'result' => $rows
180+
'result' => null
181181
));
182182
} else {
183183
// no matching method found => report soft error and keep stream alive

src/Database.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class Database extends EventEmitter
8383
*/
8484
public static function open(LoopInterface $loop, $filename, $flags = null)
8585
{
86-
$process = new Process('exec php ' . \escapeshellarg(__DIR__ . '/../res/sqlite-worker.php'));
86+
$process = new Process('exec ' . \escapeshellarg(\PHP_BINARY) . ' ' . \escapeshellarg(__DIR__ . '/../res/sqlite-worker.php'));
8787
$process->start($loop);
8888

8989
$db = new Database($process);

0 commit comments

Comments
 (0)