From bd317e3668f9b8b26cbc9017da2cae995cc191a7 Mon Sep 17 00:00:00 2001 From: Paul Richards Date: Sun, 12 Oct 2014 21:21:46 +0100 Subject: [PATCH] Add check to ensure php fastcgi handler sets SCRIPT_NAME --- admin/check/check_php_inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/admin/check/check_php_inc.php b/admin/check/check_php_inc.php index 355048d45a..ecc650770e 100644 --- a/admin/check/check_php_inc.php +++ b/admin/check/check_php_inc.php @@ -215,3 +215,9 @@ !(ini_get( 'output_handler' ) == '' && function_exists( 'ini_set' ) && version_compare( PHP_VERSION, '5.4.0', '>=' ) && version_compare( PHP_VERSION, '5.4.4', '<' ) ), array( false=> 'you should consider setting a php output handler, ensuring compression is disabled or upgrading to at least php 5.4.4' ) ); + +check_print_test_warn_row( + 'webserver: check SCRIPT_NAME is returned to PHP by web server', + isset( $_SERVER['SCRIPT_NAME'] ), + array( false => 'Please ensure web server configuration sets SCRIPT_NAME' ) +);