File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
* License: GNU/GPLv2
9
9
* @see LICENSE.txt
10
10
*
11
- * This file: CLI handler (last modified: 2021.01 .10).
11
+ * This file: CLI handler (last modified: 2021.07 .10).
12
12
*/
13
13
14
14
namespace phpMussel \CLI ;
@@ -40,6 +40,7 @@ class CLI
40
40
*
41
41
* @param \phpMussel\Core\Loader $Loader The instantiated loader object, passed by reference.
42
42
* @param \phpMussel\Core\Scanner $Scanner The instantiated scanner object, passed by reference.
43
+ * @return void
43
44
*/
44
45
public function __construct (\phpMussel \Core \Loader &$ Loader , \phpMussel \Core \Scanner &$ Scanner )
45
46
{
@@ -82,7 +83,7 @@ public function __construct(\phpMussel\Core\Loader &$Loader, \phpMussel\Core\Sca
82
83
echo $ this ->Loader ->L10N ->getString ('cli_ln1 ' ) . "\n" . $ this ->Loader ->L10N ->getString ('cli_ln2 ' ) . "\n\n" . $ this ->Loader ->L10N ->getString ('cli_ln3 ' );
83
84
84
85
/** Open STDIN. */
85
- $ Handle = fopen ('php://stdin ' , 'r ' );
86
+ $ Handle = fopen ('php://stdin ' , 'rb ' );
86
87
87
88
/** This repeats until the client exits ("quit", "q", "exit", etc). */
88
89
while (true ) {
You can’t perform that action at this time.
0 commit comments