mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 23:34:25 +02:00
Avoid hanging PHP test [PHP-2368]
This commit is contained in:
parent
ef531081bc
commit
2b075c24b0
@ -126,7 +126,7 @@
|
|||||||
# Test : PHP-2368
|
# Test : PHP-2368
|
||||||
# Description : Check php register_globals option
|
# Description : Check php register_globals option
|
||||||
# Notes : Don't test for it if PHP version is 5.4.0 or later (it has been removed)
|
# Notes : Don't test for it if PHP version is 5.4.0 or later (it has been removed)
|
||||||
if [ ! "${PHPINIFILE}" = "" -a ! "${PHPVERSION}" = "" ]; then
|
if [ ! "${PHPINIFILE}" = "" -a ! "${PHPVERSION}" = "" -a ! "${EGREPBINARY}" = "" ]; then
|
||||||
FIND=`echo ${PHPVERSION} | ${EGREPBINARY} "^(4.|5.[0-3])"`
|
FIND=`echo ${PHPVERSION} | ${EGREPBINARY} "^(4.|5.[0-3])"`
|
||||||
if [ "${FIND}" = "" ]; then
|
if [ "${FIND}" = "" ]; then
|
||||||
PREQS_MET="NO"; Debug "Found most likely PHP version 5.4.0 or higher (${PHPVERSION}) which does not use register_globals"
|
PREQS_MET="NO"; Debug "Found most likely PHP version 5.4.0 or higher (${PHPVERSION}) which does not use register_globals"
|
||||||
@ -134,6 +134,7 @@
|
|||||||
PREQS_MET="YES"; Debug "Found PHP version 4 or up to 5.3 (${FIND}) which we are going to scan"
|
PREQS_MET="YES"; Debug "Found PHP version 4 or up to 5.3 (${FIND}) which we are going to scan"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
PREQS_MET="NO"
|
||||||
Debug "Skipping test: php.ini not found, or PHP version empty"
|
Debug "Skipping test: php.ini not found, or PHP version empty"
|
||||||
Debug "php.ini: ${PHPINIFILE}"
|
Debug "php.ini: ${PHPINIFILE}"
|
||||||
Debug "version: ${PHPVERSION}"
|
Debug "version: ${PHPVERSION}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user