Skip to content

Commit 99b2fa8

Browse files
Merge branch '2.8' into 3.4
* 2.8: Fixed typo Fix ini_get() for boolean values
2 parents b5a8d9c + 506aaec commit 99b2fa8

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
@@ -137,7 +137,7 @@ public function write($content, array $metadata = null)
137137
}
138138
}
139139

140-
if (\function_exists('opcache_invalidate') && ini_get('opcache.enable')) {
140+
if (\function_exists('opcache_invalidate') && filter_var(ini_get('opcache.enable'), FILTER_VALIDATE_BOOLEAN)) {
141141
@opcache_invalidate($this->file, true);
142142
}
143143
}

0 commit comments

Comments
 (0)