browserstack / browserstack-local-php

PHP bindings for BrowserStack Local
https://www.browserstack.com
MIT License
13 stars 10 forks source link

Update Local.php #25

Closed mbtreetime closed 3 years ago

mbtreetime commented 3 years ago

concatenation of 2>&1 without a space before causes the 2 to be appended to the last argument of the command

mbtreetime commented 3 years ago

Starting the BrowserStackLocal process using the following code results in the local-identifier to have a 2 appended to the end of it.

<?php

require_once('vendor/autoload.php');

use BrowserStack\Local;

$browserStackLocal = new Local();
$browserStackLocalArgs = [
    'key' => 'XXXXXXXXXXXXXXXXXXXX',
    'force' => true,
    'local-identifier' => 'localproxy'
];
$browserStackLocal->start($browserStackLocalArgs);
$ ps -wC BrowserStackLocal -o cmd
CMD
BrowserStackLocal -logFile /var/www/projectdir/local.log XXXXXXXXXXXXXXXXXXXX -force -local-identifier localproxy2 -daemonInstance
mbtreetime commented 3 years ago

Duplicate of #14 from 2017