nsedit icon indicating copy to clipboard operation
nsedit copied to clipboard

php 7.1 issue

Open jostreff opened this issue 7 years ago • 4 comments

Dear All,

have anyone tryed this great web interface running on php7?

My attempt to use it under php 7.1.8 was failure.

jostreff avatar Aug 17 '17 14:08 jostreff

Haven't tried that yet, no. Feel free to debug and send in a PR

tuxis-ie avatar Oct 05 '17 09:10 tuxis-ie

I'm using PHP 7.1.12 and had no problems yet.

metrax avatar Dec 23 '17 11:12 metrax

On 7.2 works fine too, except I had to install MCrypt via PECL since Debian doesn't have it ready for 7.2 in sid yet.

hurricanerainbow avatar Feb 24 '18 04:02 hurricanerainbow

have it running on PHP 7.0 and no issues so far... the thing between 7.0 and 7.1 should effectively only be mcrypt as @ericcotelnu said.

Please see http://php.net/manual/de/migration71.deprecated.php for details and why PHP is dropping mcrypt (it is out of date). Seems the update should be easy enough though: it would be enough to change the enc_secret + dec_secret functions in includes/session.inc.php to something else. IMHO you'd ideally drop the dec_secret completely (no auto-login... that's a bad idea anyway) and exchange the enc_secret with just a simple hash() call...

gunnyst avatar Mar 09 '18 14:03 gunnyst