diff --git a/symfony/framework-bundle/3.3/web/index.php b/symfony/framework-bundle/3.3/web/index.php index d223d908..5bceab9c 100644 --- a/symfony/framework-bundle/3.3/web/index.php +++ b/symfony/framework-bundle/3.3/web/index.php @@ -22,7 +22,7 @@ if (getenv('APP_DEBUG')) { // Feel free to remove this, extend it, or make something more sophisticated. if (isset($_SERVER['HTTP_CLIENT_IP']) || isset($_SERVER['HTTP_X_FORWARDED_FOR']) - || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1']) || php_sapi_name() === 'cli-server') + || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', '::1']) || PHP_SAPI === 'cli-server') ) { header('HTTP/1.0 403 Forbidden'); exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');