File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " crusse/job-server" ,
3
3
"description" : " A library for computing the results of multiple PHP scripts in parallel" ,
4
- "version" : " 1.0.3 " ,
4
+ "version" : " 1.0.4 " ,
5
5
"require" : {
6
6
"php" : " >=5.3.3" ,
7
7
"symfony/process" : " ^2.6"
Original file line number Diff line number Diff line change @@ -105,9 +105,9 @@ private function createWorkerProcs( $count ) {
105
105
for ( $ i = 0 ; $ i < $ count ; $ i ++ ) {
106
106
// We use 'nice' to make the worker process slightly lower priority than
107
107
// regular PHP processes that are run by the web server, so that the
108
- // worker's don't bring down the web server so easily
108
+ // workers don't bring down the web server so easily
109
109
$ process = new Process ( 'exec nice -n 5 php ' . dirname ( __FILE__ ) .
110
- '/worker_process.php \'' . $ this ->serverSocketAddr . '\'' );
110
+ '/worker_process.php ' . escapeshellarg ( $ this ->serverSocketAddr ) );
111
111
112
112
// We don't need stdout/stderr as we're communicating via sockets
113
113
$ process ->disableOutput ();
Original file line number Diff line number Diff line change @@ -67,4 +67,6 @@ function generateString($length) {
67
67
68
68
echo 'Finished in ' . $ elapsed .' ms ' . PHP_EOL ;
69
69
echo 'Total ' . $ elapsedTotal .' ms ' . PHP_EOL ;
70
-
70
+ echo PHP_EOL ;
71
+ echo 'Successfully ran all tests ' . PHP_EOL ;
72
+ echo PHP_EOL ;
You can’t perform that action at this time.
0 commit comments