File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed
Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -162,21 +162,6 @@ public function handle(): int
162162 $ indent_texts ['UPX Pack ' ] = 'enabled ' ;
163163 }
164164
165- try {
166- $ cleanPhpSrc = $ builder ->getPHPVersion () !== $ builder ->getPHPVersionFromArchive ();
167- } catch (RuntimeException |WrongUsageException ) {
168- $ cleanPhpSrc = true ;
169- }
170- if ($ cleanPhpSrc ) {
171- logger ()->info ('Cleaning previous php build due to mismatching versions... ' );
172- FileSystem::removeDir (SOURCE_PATH . '/php-src ' );
173- FileSystem::removeDir (BUILD_MODULES_PATH );
174- $ binFiles = glob (BUILD_BIN_PATH . '/php* ' );
175- $ libFiles = glob (BUILD_LIB_PATH . '/libphp* ' );
176- foreach ([...$ binFiles , ...$ libFiles ] as $ file ) {
177- unlink ($ file );
178- }
179- }
180165 $ ver = $ builder ->getPHPVersionFromArchive () ?: $ builder ->getPHPVersion ();
181166 $ indent_texts ['PHP Version ' ] = $ ver ;
182167
You can’t perform that action at this time.
0 commit comments