@@ -16,7 +16,9 @@ class CompileBinaryCommand extends Command
16
16
17
17
public function handle (): void
18
18
{
19
- set_time_limit (300 );
19
+ $ timeout = 60 * 10 ;
20
+
21
+ set_time_limit ($ timeout );
20
22
21
23
$ version = File::json (base_path ('composer.json ' ))['version ' ];
22
24
@@ -26,6 +28,8 @@ public function handle(): void
26
28
sprintf ('bin/php-parser-v%s-%s ' , $ version , $ this ->option ('arch ' ))
27
29
);
28
30
31
+ info ("Destination: {$ destination }" );
32
+
29
33
if (file_exists (base_path ('.env ' ))) {
30
34
exec ('mv ' . base_path ('.env ' ) . ' ' . base_path ('.env.bak ' ));
31
35
}
@@ -75,8 +79,8 @@ public function handle(): void
75
79
sprintf ('%s download --with-php=8.2 --for-extensions="%s" ' , $ spc , $ extensions ),
76
80
sprintf ('%s build --build-micro --build-cli "%s" ' , $ spc , $ extensions ),
77
81
sprintf ('%s micro:combine %s -O %s ' , $ spc , base_path ('builds/php-parser ' ), $ destination ),
78
- ])->each (function (string $ command ) {
79
- Process::timeout (300 )->run ($ command , function (string $ type , string $ output ) {
82
+ ])->each (function (string $ command ) use ( $ timeout ) {
83
+ Process::timeout ($ timeout )->run ($ command , function (string $ type , string $ output ) {
80
84
echo $ output ;
81
85
});
82
86
});
0 commit comments