Skip to content

Commit 506aaec

Browse files
committed
Fix ini_get() for boolean values
1 parent fb34692 commit 506aaec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ResourceCheckerConfigCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function write($content, array $metadata = null)
151151
}
152152
}
153153

154-
if (\function_exists('opcache_invalidate') && ini_get('opcache.enable')) {
154+
if (\function_exists('opcache_invalidate') && filter_var(ini_get('opcache.enable'), FILTER_VALIDATE_BOOLEAN)) {
155155
@opcache_invalidate($this->file, true);
156156
}
157157
}

0 commit comments

Comments
 (0)