Skip to content

Commit

Permalink
bug #35023 [HttpKernel] ignore failures generated by opcache.restrict…
Browse files Browse the repository at this point in the history
…_api (nicolas-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] ignore failures generated by opcache.restrict_api

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #34947
| License       | MIT
| Doc PR        | -

Commits
-------

e411b65 [HttpKernel] ignore failuresgenerated by opcache.restrict_api
  • Loading branch information
nicolas-grekas committed Dec 18, 2019
2 parents cfc7146 + e411b65 commit b0eb6f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpKernel/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ public function write($content, array $metadata = null)
}

if (\function_exists('opcache_invalidate') && filter_var(ini_get('opcache.enable'), FILTER_VALIDATE_BOOLEAN)) {
opcache_invalidate($this->getPath(), true);
@opcache_invalidate($this->getPath(), true);
}
}

Expand Down

0 comments on commit b0eb6f3

Please sign in to comment.