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

Commit eb39047

Browse files
committed
Check return value
1 parent 6dc9fd3 commit eb39047

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ public function up() : void
7171
if (file_exists($this->opcache_file_cache)) {
7272
$this->rm($this->opcache_file_cache);
7373
}
74-
mkdir($this->opcache_file_cache);
74+
if (!mkdir($this->opcache_file_cache)) {
75+
throw new Exception("Failed to create '{$this->opcache_file_cache}'");
76+
}
7577
}
7678

7779
$exe = $this->getExeFilename();

0 commit comments

Comments
 (0)