File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -6048,9 +6048,10 @@ function installPhpParser(string $version, string $phpParserDir) {
60486048 chdir (__DIR__ );
60496049
60506050 $ tarName = "v $ version.tar.gz " ;
6051- passthru ("wget https://github.com/nikic/PHP-Parser/archive/ $ tarName " , $ exit );
6051+ $ downloadUrl = "https://github.com/nikic/PHP-Parser/archive/ $ tarName " ;
6052+ passthru ("wget -O $ tarName $ downloadUrl " , $ exit );
60526053 if ($ exit !== 0 ) {
6053- passthru ("curl -LO https://github.com/nikic/PHP-Parser/archive/ $ tarName " , $ exit );
6054+ passthru ("curl -LO $ downloadUrl " , $ exit );
60546055 }
60556056 if ($ exit !== 0 ) {
60566057 throw new Exception ("Failed to download PHP-Parser tarball " );
@@ -6060,6 +6061,7 @@ function installPhpParser(string $version, string $phpParserDir) {
60606061 }
60616062 passthru ("tar xvzf $ tarName -C PHP-Parser- $ version --strip-components 1 " , $ exit );
60626063 if ($ exit !== 0 ) {
6064+ rmdir ($ phpParserDir );
60636065 throw new Exception ("Failed to extract PHP-Parser tarball " );
60646066 }
60656067 unlink (__DIR__ . "/ $ tarName " );
You can’t perform that action at this time.
0 commit comments