Skip to content

Commit

Permalink
Add check to ensure php fastcgi handler sets SCRIPT_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis committed Oct 18, 2014
1 parent 13264a7 commit bd317e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions admin/check/check_php_inc.php
Expand Up @@ -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' )
);

0 comments on commit bd317e3

Please sign in to comment.