Skip to content

Commit

Permalink
Symfony requirements file now compatible with PHP 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelandrieu committed Aug 6, 2018
1 parent 4e7a916 commit fe14b75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions var/SymfonyRequirements.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ function_exists('simplexml_import_dom'),
if (extension_loaded('suhosin')) {
$this->addPhpIniRequirement(
'suhosin.executor.include.whitelist',
create_function('$cfgValue', 'return false !== stripos($cfgValue, "phar");'),
function ($cfgValue) { return false !== stripos($cfgValue, "phar"); },
false,
'suhosin.executor.include.whitelist must be configured correctly in php.ini',
'Add "<strong>phar</strong>" to <strong>suhosin.executor.include.whitelist</strong> in php.ini<a href="#phpini">*</a>.'
Expand All @@ -530,7 +530,7 @@ function_exists('simplexml_import_dom'),

$this->addPhpIniRecommendation(
'xdebug.max_nesting_level',
create_function('$cfgValue', 'return $cfgValue > 100;'),
function ($cfgValue) { return $cfgValue > 100; },
true,
'xdebug.max_nesting_level should be above 100 in php.ini',
'Set "<strong>xdebug.max_nesting_level</strong>" to e.g. "<strong>250</strong>" in php.ini<a href="#phpini">*</a> to stop Xdebug\'s infinite recursion protection erroneously throwing a fatal error in your project.'
Expand All @@ -548,7 +548,7 @@ function_exists('simplexml_import_dom'),
if (extension_loaded('mbstring')) {
$this->addPhpIniRequirement(
'mbstring.func_overload',
create_function('$cfgValue', 'return (int) $cfgValue === 0;'),
function ($cfgValue) { return (int) $cfgValue === 0; },
true,
'string functions should not be overloaded',
'Set "<strong>mbstring.func_overload</strong>" to <strong>0</strong> in php.ini<a href="#phpini">*</a> to disable function overloading by the mbstring extension.'
Expand Down Expand Up @@ -697,7 +697,7 @@ function_exists('posix_isatty'),

$this->addPhpIniRecommendation(
'intl.error_level',
create_function('$cfgValue', 'return (int) $cfgValue === 0;'),
function ($cfgValue) { return (int) $cfgValue === 0; },
true,
'intl.error_level should be 0 in php.ini',
'Set "<strong>intl.error_level</strong>" to "<strong>0</strong>" in php.ini<a href="#phpini">*</a> to inhibit the messages when an error occurs in ICU functions.'
Expand Down

0 comments on commit fe14b75

Please sign in to comment.