Skip to content

Commit

Permalink
ENGCOM-4681: unregister phar only when appropriate #22171
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov authored Apr 12, 2019
2 parents 3a784f2 + c0c0645 commit d8f3dd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
* Environment initialization
*/
error_reporting(E_ALL);
stream_wrapper_unregister('phar');
if (in_array('phar', \stream_get_wrappers())) {
stream_wrapper_unregister('phar');
}
#ini_set('display_errors', 1);

/* PHP version validation */
Expand Down

0 comments on commit d8f3dd8

Please sign in to comment.