Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit f9aff35

Browse files
committed
Don't die hard if cleanup was failed.
For now at least. The core bug still needs to be fixed.
1 parent a827b2f commit f9aff35

File tree

1 file changed

+5
-1
lines changed
  • lib/php/libsdk/SDK/Build/PGO/PHP

1 file changed

+5
-1
lines changed

lib/php/libsdk/SDK/Build/PGO/PHP/FCGI.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,11 @@ public function down(bool $force = false) : void
117117

118118
/* XXX Add cleanup interface. */
119119
if ("cache" == $this->scenario) {
120-
$this->rm($this->opcache_file_cache);
120+
try {
121+
$this->rm($this->opcache_file_cache);
122+
} catch (\UnexpectedValueException $e) {
123+
echo $e->getMessage(), "\n";
124+
}
121125
}
122126

123127
echo "PHP FCGI stopped.\n";

0 commit comments

Comments
 (0)