Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25856

Silent PHP7 deprecation errors in ezpublish-legacy

    XMLWordPrintable

Details

    Description

      Using eZ Publish legacy with PHP 7 (through Symfony stack or pure legacy) triggers deprecation errors, especially when launching console scripts:

      $ php ezpublish/console ezpublish:legacy:script bin/php/ezcache.php --clear-all
      Running script 'bin/php/ezcache.php' in eZ Publish legacy context
      PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; eZTextCodec has a deprecated constructor in /Users/lolautruche/workspace/onisep/ezpublish_legacy/lib/ezi18n/classes/eztextcodec.php on line 22
      
      Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; eZTextCodec has a deprecated constructor in /Users/lolautruche/workspace/onisep/ezpublish_legacy/lib/ezi18n/classes/eztextcodec.php on line 22
      PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; eZLog has a deprecated constructor in /Users/lolautruche/workspace/onisep/ezpublish_legacy/lib/ezfile/classes/ezlog.php on line 19
      
      Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; eZLog has a deprecated constructor in /Users/lolautruche/workspace/onisep/ezpublish_legacy/lib/ezfile/classes/ezlog.php on line 19
      PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; eZCLI has a deprecated constructor in /Users/lolautruche/workspace/onisep/ezpublish_legacy/lib/ezutils/classes/ezcli.php on line 30
      
      Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; eZCLI has a deprecated constructor in /Users/lolautruche/workspace/onisep/ezpublish_legacy/lib/ezutils/classes/ezcli.php on line 30
      PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; eZCodePage has a deprecated constructor in /Users/lolautruche/workspace/onisep/ezpublish_legacy/lib/ezi18n/classes/ezcodepage.php on line 18
      
      Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; eZCodePage has a deprecated constructor in /Users/lolautruche/workspace/onisep/ezpublish_legacy/lib/ezi18n/classes/ezcodepage.php on line 18
      Clearing All cache:
      Cache de contenu, Cache Global INI, Cache INI, Cache codepage, Cache des identifiants de classes, Cache des clés de classement, Cache des alias d'URL, Cacher de transformation des caractères, Alias d'image, Cache des templates, Cache des template block, Cache des templates override, Cache de texttoimage, Cache RSS, Cache de informations personnelles des utilisateurs, Arbre des contenus (cache navigateur), Cache des limitations sur les états, Cache de langage de contenu, Cache des fichiers de design, Cache des extensions actives, Cache de traduction, Cache de Zones SSL, REST Application cache, REST Routes memory cache, eZJSCore Public Packer cache
      

      This is due to the call of error_reporting( E_ALL ) in eZScript.

      Attachments

        Activity

          People

            Unassigned Unassigned
            9e9f2c72-d8ff-4ec0-b8df-c5a744234b9a@accounts.ibexa.co Jérôme Vieilledent
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: