@@ -66,7 +66,7 @@ public static function initSource(?array $sources = null, ?array $libs = null, ?
6666 $ check = LockFile::getExtractPath ($ lock_name , SOURCE_PATH . '/ ' . $ source );
6767 // $check = $lock[$lock_name]['move_path'] === null ? (SOURCE_PATH . '/' . $source) : (SOURCE_PATH . '/' . $lock[$lock_name]['move_path']);
6868 if (!is_dir ($ check )) {
69- logger ()->debug (' Extracting source [ ' . $ source . ' ] to ' . $ check . ' ... ' );
69+ logger ()->debug (" Extracting source [ { $ source} ] to { $ check} ... " );
7070 $ filename = LockFile::getLockFullPath ($ lock_content );
7171 FileSystem::extractSource ($ source , $ lock_content ['source_type ' ], $ filename , $ check );
7272 LockFile::putLockSourceHash ($ lock_content , $ check );
@@ -81,7 +81,14 @@ public static function initSource(?array $sources = null, ?array $libs = null, ?
8181
8282 // when source already extracted, detect if the extracted source hash is the same as the lock file one
8383 if (file_exists ("{$ check }/.spc-hash " ) && FileSystem::readFile ("{$ check }/.spc-hash " ) === $ hash ) {
84- logger ()->debug ('Source [ ' . $ source . '] already extracted in ' . $ check . ', skip ! ' );
84+ logger ()->debug ("Source [ {$ source }] already extracted in {$ check }, skip ! " );
85+ continue ;
86+ }
87+
88+ // ext imap was included in php < 8.4 which we should not extract,
89+ // but since it's not simple to compare php version, for now we just skip it
90+ if ($ source === 'ext-imap ' ) {
91+ logger ()->debug ("Source [ext-imap] already extracted in {$ check }, skip ! " );
8592 continue ;
8693 }
8794
0 commit comments