Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: bonbob on October 30, 2017, 04:35:06 AM

Title: Missing PHP7 extension mcrypt
Post by: bonbob on October 30, 2017, 04:35:06 AM
As i understand package php7-ext.tcz has no all of php-extensions inside. For example mCrypt is missing. I dont know what is the reason of specific list of extensions, maybe most popular of them or lightweight. But in that case users has no possibility download other neccesary php7 extensions, install it as *.TCZ and add to extension list. Only recompiling whole PHP can solve this problem. Is it right?
Title: Re: Missing PHP7 extension mcrypt
Post by: Juanito on October 30, 2017, 04:54:22 AM
Which repo are you speaking of?

According to the CorePure64-8.x php7-mod info file, the extension used to support mcrypt, but the support was dropped.
Title: Re: Missing PHP7 extension mcrypt
Post by: andyj on October 30, 2017, 08:20:18 AM
PHP deprecated mcrypt in 7.1. If you're using it, you should use openssl instead. http://php.net/manual/en/migration71.deprecated.php (http://php.net/manual/en/migration71.deprecated.php)
Title: Re: Missing PHP7 extension mcrypt
Post by: bonbob on October 30, 2017, 01:03:45 PM
Quote
PHP deprecated mcrypt in 7.1
Funny situation, more and more scripts needs to downgrade PHP version. mysql was dropped earlier, now the same became with mcrypt. So, "OC Store" has no adopted to PHP7, as "Open Cart" too.
How about PHP-FPM ver. 5.6.31? This version can exists with PHP7 together on one server and make migration between PHP versions more painless.
Title: Re: Missing PHP7 extension mcrypt
Post by: andyj on October 30, 2017, 01:40:21 PM
Mysql (MariaDB) is supported in php7-ext.tcz. I don't use it, but I'm guessing others do so I don't intend to drop it. PHP 5.x is no longer in active development http://php.net/supported-versions.php (http://php.net/supported-versions.php), only security fixes are being made until the end of 2018.
Title: Re: Missing PHP7 extension mcrypt
Post by: bonbob on October 31, 2017, 04:14:02 AM
I mean this https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7#extmysql (https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7#extmysql)
Title: Re: Missing PHP7 extension mcrypt
Post by: andyj on October 31, 2017, 08:10:10 AM
Maybe some sed scripts could update your mysql functions to PDO, but then I can't see how well (or poorly) the code you have to work with is written.