Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homestead Box Mcrypt #387

Closed
djekl opened this issue Dec 7, 2016 · 5 comments
Closed

Homestead Box Mcrypt #387

djekl opened this issue Dec 7, 2016 · 5 comments

Comments

@djekl
Copy link

djekl commented Dec 7, 2016

Versions

  • Vagrant: Vagrant 1.9.0
  • Provider: Virtualbox 5.1.10 r112026 (Qt5.6.2)
  • Homestead: 1.9.0

The latest Homestead Box doesn't have Mcrypt installed by default, and also now no longer works with Laravel 4.2 legacy projects once I install Mcrypt sudo apt-get install -y php7.1-mcrypt

Function mcrypt_get_iv_size() is deprecated inside /vendor/laravel/framework/src/Illuminate/Encryption/Encrypter.php line 305

Function mcrypt_get_iv_size() is deprecated

@djekl
Copy link
Author

djekl commented Dec 7, 2016

Mcrypt deprication is here - laravel/framework#16329

@svpernova09
Copy link
Contributor

Laravel v4.2.20 was released to bring PHP 7.0 compatibility to the 4.2.x version. Homestead 4.x will be the version that supports PHP 7.1. To continue using Homestead with PHP 7.0 please use version 3.1 of Homestead.

If you want to continue using PHP 7.1 you'll have to adjust your code base to catch or suppress deprecated warnings.

@djekl
Copy link
Author

djekl commented Dec 7, 2016

I am using Laravel Framework version 4.2.22

This latest box doesn't have Mcrypt, this is one limiting factor, and the other is that deprication WITHIN the laravel framework itself. Its not something I have control over!

@svpernova09
Copy link
Contributor

The framework didn't depreciate mcrypt, the PHP Language did.

At this time you should use Homestead 3.1, which supports PHP 7.0

@mul14
Copy link

mul14 commented Dec 7, 2016

That's just "deprecated warning". You can turn it off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants