Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed Sep 9, 2024
1 parent baeb1c1 commit 5f09999
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sapi/src/Preprocessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,7 @@ protected function sortLibrary(): void
protected function mkdirIfNotExists(string $dir, int $permissions = 0777, bool $recursive = false): void
{
if (!is_dir($dir)) {
echo $dir . PHP_EOL;
mkdir($dir, $permissions, $recursive);
}
}
Expand Down Expand Up @@ -1124,6 +1125,7 @@ public function execute(): void
}
$this->mkdirIfNotExists($this->libraryDir, 0777, true);
$this->mkdirIfNotExists($this->extensionDir, 0777, true);
$this->deleteDirectoryIfExists($this->getWorkExtDir());
include __DIR__ . '/constants.php';

$extAvailabled = [];
Expand Down Expand Up @@ -1161,7 +1163,6 @@ public function execute(): void
}
}

$this->deleteDirectoryIfExists($this->getWorkExtDir());
// autoload extension depend extension
foreach ($this->extensionMap as $ext) {
foreach ($ext->dependentExtensions as $extension_name) {
Expand Down

0 comments on commit 5f09999

Please sign in to comment.