Suhosin in php 7?

Strator

Verified User
Joined
Jan 19, 2011
Messages
178
Hi,

It seems like ever since I've updated php 5 to php 7, the suhosin extension is gone. I'm probably doing something very wrong, just can't figure out what it is.

In php5.6, Suhosin was loaded in 10-directadmin.ini with the following line:
extension=suhosin.so

And the module itself is actually in /usr/local/php56/lib/php/extensions/no-debug-zts-1234567/

In php 7.2 or 7.3, there isn't even a 10-directadmin.ini file, and the suhosin extension is nowhere to be found, even though suhosin is turned on via the Custombuild configuration. I even ran this manually:

./build set suhosin yes
Changed suhosin option from yes to yes

./build suhosin
Found /usr/local/directadmin/custombuild/suhosin-0.9.38.tar.gz
Extracting /usr/local/directadmin/custombuild/suhosin-0.9.38.tar.gz...
Restarting php-fpm73.
suhosin 0.9.38 PHP extension has been installed successfully.

But not luck, unfortunately. phpinfo() also says nothing of Suhosin. Any ideas?

Thanks!
 

jayw1

Verified User
Joined
Nov 20, 2019
Messages
134
Location
USA
I don't think suhosin was ever updated for PHP 7 nor do I think it's even needed.
 

Strator

Verified User
Joined
Jan 19, 2011
Messages
178
I see what you're saying - but then I guess it's a bit misleading that it shows up as a Custombuild option when you have php installed, and even more confusing that it seems to install, when in fact it doesn't.

Btw. there's a suhosin replacement for php7 here:
 
Top