Suhosin is hard linked into PHP on OpenBSD (#423)

This commit is contained in:
alobodzinski 2017-07-28 10:14:04 +02:00 committed by Michael Boelen
parent b301a1c108
commit 6147ebd47b

View File

@ -301,6 +301,10 @@
if [ ${SKIPTEST} -eq 0 ]; then
FOUND=0
SIMULATION=0
if [ "${OS}" = "OpenBSD" ]; then
FOUND=1 # On OpenBSD, Suhosin is hard linked into PHP
SIMULATION=off
else
for I in ${PHPINI_ALLFILES}; do
LogText "Test: Checking for PHP suhosin extension status in file ${I}"
FIND=$(${GREPBINARY} -oP '^extension=.*?suhosin.so.*$' ${I})
@ -319,6 +323,7 @@
LogText "Result: ${I}: suhosin simulation mode is active"
fi
done
fi
if [ ${FOUND} -eq 0 ]; then
LogText "Result: Suhosin extension is not enabled"