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

Hotfix usage of global in cli scripts

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 5.2
    • 5.1, 5.2 Certification, 5.2-rc1
    • None
    • None

    Description

      When running scripts through ezpublish/console ezpublish:legacy:script, a fatal error / warning / notice can be thrown if the script tries to use a variable (like $cli) from the global scope.

      The reason is that legacy scripts aren't executed in the global scope anymore, since the new stack script runs them through a kernel.

      Each script, extensions included, needs to be fixed, for instance using closures.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joao.inacio-obsolete@ez.no Joao Inacio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 1 hour, 30 minutes
                2d 1h 30m