From df6b8a04b8a352416f74a2fe14475d27ac670f0f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 10 May 2017 11:19:42 -0700 Subject: [PATCH] replaced php_sapi_name() with PHP_SAPI --- symfony/framework-bundle/3.3/web/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.');