diff --git a/symfony/console/3.3/bin/console b/symfony/console/3.3/bin/console index 15d8f095b..8ec3af44d 100755 --- a/symfony/console/3.3/bin/console +++ b/symfony/console/3.3/bin/console @@ -7,7 +7,6 @@ use Symfony\Component\Console\Input\ArgvInput; use Symfony\Component\Debug\Debug; use Symfony\Component\Dotenv\Dotenv; -umask(0000); set_time_limit(0); require __DIR__.'/../vendor/autoload.php'; @@ -24,8 +23,12 @@ $input = new ArgvInput(); $env = $input->getParameterOption(['--env', '-e'], $_SERVER['APP_ENV'] ?? 'dev'); $debug = ($_SERVER['APP_DEBUG'] ?? true) !== '0' && !$input->hasParameterOption(['--no-debug', '']); -if ($debug && class_exists(Debug::class)) { - Debug::enable(); +if ($debug) { + umask(0000); + + if (class_exists(Debug::class)) { + Debug::enable(); + } } $kernel = new Kernel($env, $debug); diff --git a/symfony/framework-bundle/3.3/public/index.php b/symfony/framework-bundle/3.3/public/index.php index e81da86b8..d2c826aff 100644 --- a/symfony/framework-bundle/3.3/public/index.php +++ b/symfony/framework-bundle/3.3/public/index.php @@ -13,9 +13,6 @@ } if ($_SERVER['APP_DEBUG'] ?? false) { - // WARNING: You should setup permissions the proper way! - // REMOVE the following PHP line and read - // https://symfony.com/doc/current/book/installation.html#checking-symfony-application-configuration-and-setup umask(0000); Debug::enable();