2017-02-28 17 views
7

에 사용되지 않습니다, 여기 기능 mcrypt_get_iv_size()가 Laravel 4 내가 L4에서 오전

를 더 이상 사용되지 않습니다 내 app.php

<?php 

return array(

    /* 
    |-------------------------------------------------------------------------- 
    | Application Debug Mode 
    |-------------------------------------------------------------------------- 
    | 
    | When your application is in debug mode, detailed error messages with 
    | stack traces will be shown on every error that occurs within your 
    | application. If disabled, a simple generic error page is shown. 
    | 
    */ 

    'debug' => true, 

    /* 
    |-------------------------------------------------------------------------- 
    | Application URL 
    |-------------------------------------------------------------------------- 
    | 
    | This URL is used by the console to properly generate URLs when using 
    | the Artisan command line tool. You should set this to the root of 
    | your application so that it is used when running Artisan tasks. 
    | 
    */ 

    'url' => 'http://1.1.1.1/', 

    /* 
    |-------------------------------------------------------------------------- 
    | Application Timezone 
    |-------------------------------------------------------------------------- 
    | 
    | Here you may specify the default timezone for your application, which 
    | will be used by the PHP date and date-time functions. We have gone 
    | ahead and set this to a sensible default for you out of the box. 
    | 
    */ 

    'timezone' => 'UTC', 

    /* 
    |-------------------------------------------------------------------------- 
    | Application Locale Configuration 
    |-------------------------------------------------------------------------- 
    | 
    | The application locale determines the default locale that will be used 
    | by the translation service provider. You are free to set this value 
    | to any of the locales which will be supported by the application. 
    | 
    */ 

    'locale' => 'en', 

    /* 
    |-------------------------------------------------------------------------- 
    | Application Fallback Locale 
    |-------------------------------------------------------------------------- 
    | 
    | The fallback locale determines the locale to use when the current one 
    | is not available. You may change the value to correspond to any of 
    | the language folders that are provided through your application. 
    | 
    */ 

    'fallback_locale' => 'en', 

    /* 
    |-------------------------------------------------------------------------- 
    | Encryption Key 
    |-------------------------------------------------------------------------- 
    | 
    | This key is used by the Illuminate encrypter service and should be set 
    | to a random, 32 character string, otherwise these encrypted strings 
    | will not be safe. Please do this before deploying an application! 
    | 
    */ 

    'key' => 'rO9cCeyugcXru0VvBQ7mkP4zLLZceVgp', 

    'cipher' => 'AES-256-CBC', 

    /* 
    |-------------------------------------------------------------------------- 
    | Autoloaded Service Providers 
    |-------------------------------------------------------------------------- 
    | 
    | The service providers listed here will be automatically loaded on the 
    | request to your application. Feel free to add your own services to 
    | this array to grant expanded functionality to your applications. 
    | 
    */ 

    'providers' => array(

     'Illuminate\Foundation\Providers\ArtisanServiceProvider', 
     'Illuminate\Auth\AuthServiceProvider', 
     'Illuminate\Cache\CacheServiceProvider', 
     'Illuminate\Session\CommandsServiceProvider', 
     'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider', 
     'Illuminate\Routing\ControllerServiceProvider', 
     'Illuminate\Cookie\CookieServiceProvider', 
     'Illuminate\Database\DatabaseServiceProvider', 
     'Illuminate\Encryption\EncryptionServiceProvider', 
     'Illuminate\Filesystem\FilesystemServiceProvider', 
     'Illuminate\Hashing\HashServiceProvider', 
     'Illuminate\Html\HtmlServiceProvider', 
     'Illuminate\Log\LogServiceProvider', 
     'Illuminate\Mail\MailServiceProvider', 
     'Illuminate\Database\MigrationServiceProvider', 
     'Illuminate\Pagination\PaginationServiceProvider', 
     'Illuminate\Queue\QueueServiceProvider', 
     'Illuminate\Redis\RedisServiceProvider', 
     'Illuminate\Remote\RemoteServiceProvider', 
     'Illuminate\Auth\Reminders\ReminderServiceProvider', 
     'Illuminate\Database\SeedServiceProvider', 
     'Illuminate\Session\SessionServiceProvider', 
     'Illuminate\Translation\TranslationServiceProvider', 
     'Illuminate\Validation\ValidationServiceProvider', 
     'Illuminate\View\ViewServiceProvider', 
     'Illuminate\Workbench\WorkbenchServiceProvider', 
     'Sebklaus\Profiler\Providers\ProfilerServiceProvider' 

    ), 

    /* 
    |-------------------------------------------------------------------------- 
    | Service Provider Manifest 
    |-------------------------------------------------------------------------- 
    | 
    | The service provider manifest is used by Laravel to lazy load service 
    | providers which are not needed for each request, as well to keep a 
    | list of all of the services. Here, you may set its storage spot. 
    | 
    */ 

    'manifest' => storage_path().'/meta', 

    /* 
    |-------------------------------------------------------------------------- 
    | Class Aliases 
    |-------------------------------------------------------------------------- 
    | 
    | This array of class aliases will be registered when this application 
    | is started. However, feel free to register as many as you wish as 
    | the aliases are "lazy" loaded so they don't hinder performance. 
    | 
    */ 

    'aliases' => array(

     'App'    => 'Illuminate\Support\Facades\App', 
     'Artisan'   => 'Illuminate\Support\Facades\Artisan', 
     'Auth'    => 'Illuminate\Support\Facades\Auth', 
     'Blade'    => 'Illuminate\Support\Facades\Blade', 
     'Cache'    => 'Illuminate\Support\Facades\Cache', 
     'ClassLoader'  => 'Illuminate\Support\ClassLoader', 
     'Config'   => 'Illuminate\Support\Facades\Config', 
     'Controller'  => 'Illuminate\Routing\Controller', 
     'Cookie'   => 'Illuminate\Support\Facades\Cookie', 
     'Crypt'    => 'Illuminate\Support\Facades\Crypt', 
     'DB'    => 'Illuminate\Support\Facades\DB', 
     'Eloquent'   => 'Illuminate\Database\Eloquent\Model', 
     'Event'    => 'Illuminate\Support\Facades\Event', 
     'File'    => 'Illuminate\Support\Facades\File', 
     'Form'    => 'Illuminate\Support\Facades\Form', 
     'Hash'    => 'Illuminate\Support\Facades\Hash', 
     'HTML'    => 'Illuminate\Support\Facades\HTML', 
     'Input'    => 'Illuminate\Support\Facades\Input', 
     'Lang'    => 'Illuminate\Support\Facades\Lang', 
     'Log'    => 'Illuminate\Support\Facades\Log', 
     'Mail'    => 'Illuminate\Support\Facades\Mail', 
     'Paginator'   => 'Illuminate\Support\Facades\Paginator', 
     'Password'   => 'Illuminate\Support\Facades\Password', 
     'Queue'    => 'Illuminate\Support\Facades\Queue', 
     'Redirect'   => 'Illuminate\Support\Facades\Redirect', 
     'Redis'    => 'Illuminate\Support\Facades\Redis', 
     'Request'   => 'Illuminate\Support\Facades\Request', 
     'Response'   => 'Illuminate\Support\Facades\Response', 
     'Route'    => 'Illuminate\Support\Facades\Route', 
     'Schema'   => 'Illuminate\Support\Facades\Schema', 
     'Seeder'   => 'Illuminate\Database\Seeder', 
     'Session'   => 'Illuminate\Support\Facades\Session', 
     'SoftDeletingTrait' => 'Illuminate\Database\Eloquent\SoftDeletingTrait', 
     'SSH'    => 'Illuminate\Support\Facades\SSH', 
     'Str'    => 'Illuminate\Support\Str', 
     'URL'    => 'Illuminate\Support\Facades\URL', 
     'Validator'   => 'Illuminate\Support\Facades\Validator', 
     'View'    => 'Illuminate\Support\Facades\View', 
     'Carbon'   => 'Carbon\Carbon', 

    ), 

); 

내가 (gettig

기능 mcrypt_get_iv_size 유지)입니다

어떻게 방지 할 수 있습니까?

+0

Laravel 5로 업그레이드 하시겠습니까? – ceejayoz

+0

사이트가 이미 배포되어 4.2에서 실행되고 있습니다. 무엇을 깨지 않고 가장 빠른 방법을 업그레이드해야합니까? – ihue

+0

귀하의 의견에 대한 답변을 드릴 웹 문서가 있으리라 확신합니다. @hue – Martin

답변

24

PHP 7.1 대신 PHP 7을 사용할 수 있습니다. 또는 가능한 경우 Laravel 5로 업그레이드 할 수 있습니다. 그것은 더러운 보이는

error_reporting(E_ALL^E_DEPRECATED); 

,하지만 난 순간에 오류를 방지 할 수있는 더 좋은 방법이 더있다 두려워 : 그렇지 않은 경우, config/app.php의 시작이를 추가합니다.

+2

와우. 완벽하게 일하십시오. !!! – ihue

+0

@hue 그래,하지만 그것은 결국 문제를 숨기고있는 중이다. 이러한 비추천 기능 **은 어느 시점에서 사라질 것입니다. – ceejayoz

+0

기록을 위해, PHP 7.1을 사용할 때 Laravel 5.4에서도이 점을 얻었습니다. 따라서 L5로 바로 업그레이드해도 문제가 해결되지는 않습니다. Laravel 5.5가 핵심 문제를 다룰 수 있기를 바랍니다. – Andrew