简体   繁体   English

php 7 MCRYPT_RIJNDAEL_128在Laravel宅基地32位错误

[英]php 7 MCRYPT_RIJNDAEL_128 error in laravel homestead 32 bit

I have install laravel homestead for 32 bit in windows 我在Windows中为32位安装了laravel homestead

git https://github.com/rmff/laravel-homestead-32bit.git Homestead32Bit
cd Homestead32Bit
vagrant up

it's working fine for me after that i downloded laravel 5.0 在我下载了laravel 5.0之后,它对我来说工作正常

composer create-project laravel/laravel Laravel  "~5.0.0" --prefer-dist

my homestead.yaml file look like this 我的homestead.yaml文件看起来像这样

---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: D:\www
      to: /home/vagrant/www

sites:
    - map: daulat.app
      to: /home/vagrant/www/Laravel/public

databases:
    - homestead

# blackfire:
#     - id: foo
#       token: bar
#       client-id: foo
#       client-token: bar

# ports:
#     - send: 50000
#       to: 5000
#     - send: 7777
#       to: 777
#       protocol: udp

Now when i'm running http://daulat.app/ i'm getting this error 现在,当我运行http://daulat.app/时 ,出现此错误

( ! ) Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /home/vagrant/www/Laravel/config/app.php on line 83
Call Stack
#   Time    Memory  Function    Location
1   0.0977  351248  {main}( )   .../index.php:0
2   1.0695  1913472 Illuminate\Foundation\Http\Kernel->handle( )    .../index.php:53
3   1.0695  1913472 Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter( )  .../compiled.php:1880
4   1.0697  1913472 Illuminate\Foundation\Http\Kernel->bootstrap( ) .../compiled.php:1890
5   1.0697  1913472 Illuminate\Foundation\Application->bootstrapWith( ) .../compiled.php:1928
6   1.1328  1920704 Illuminate\Foundation\Bootstrap\LoadConfiguration->bootstrap( ) .../compiled.php:1311
7   1.1422  1920824 Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFiles( )    .../compiled.php:1806
8   1.5877  1924344 require( '/home/vagrant/www/Laravel/config/app.php' )   .../compiled.php:1814

Read the message carefully: 仔细阅读消息:

( ! ) Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' (!)注意:使用未定义的常量MCRYPT_RIJNDAEL_128-假定为'MCRYPT_RIJNDAEL_128'

MCRYPT_RIJNDAEL_128 vs 'MCRYPT_RIJNDAEL_128' MCRYPT_RIJNDAEL_128'MCRYPT_RIJNDAEL_128'

Notice the quotes around MCRYPT_RIJNDAEL_128 , it needs to be a string. 请注意MCRYPT_RIJNDAEL_128周围的引号,它必须是字符串。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM