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

running ezpublish:legacy:script displays unwanted '#!/usr/bin/env php' string

    Details

      Description

      Executing a legacy script through php ezpublish/console ezpublish:legacy:script will output the following in the first line:

      #!/usr/bin/env php
      

      The above should not be displayed, even more so when the scripts are given the '--quiet' option.
      Another use case would be if the output needs to be in a certain format (such as JSON), in which case the line will break the format.

      Note:

      This output originates in the shebang line on the actual legacy scripts, that specify the php interpreter to use.

        Activity

        Hide
        Joao Inacio (Inactive) added a comment - - edited

        It seems this has also been reported as an enhancement to PHP, see http://bugs.php.net/bug.php?id=54588 (cached page)

        Show
        Joao Inacio (Inactive) added a comment - - edited It seems this has also been reported as an enhancement to PHP, see http://bugs.php.net/bug.php?id=54588 (cached page)
        Show
        Joao Inacio (Inactive) added a comment - Suggested PR at https://github.com/ezsystems/ezpublish-kernel/pull/578
        Show
        Jérôme Vieilledent (Inactive) added a comment - Fixed in master: https://github.com/ezsystems/ezpublish-kernel/commit/febadaa803d035e20f36f15536e1ea5f8ffdf7a2
        Hide
        Joao Pingo (Inactive) added a comment -

        QA Approved

        Show
        Joao Pingo (Inactive) added a comment - QA Approved

          People

          • Assignee:
            Unassigned
            Reporter:
            Joao Inacio (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 3 hours
              3h