Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15886

Weird while-loop produces argument parsing errors in CLI

    Details

    • Documentation Required?:
      None

      Description

      When you pass more than one argument (that is not explictly specified like -e/-a/...) to a CLI script (bin/csv/...), only the first one gets parsed correctly.

      This is caused by a weird while-each-loop...
      DEMONSTRATION:
      http://sandbox.onlinephpfunctions.com/code/370c6dcc3bdc536819d52459ffd0343e699f77b2

      Fix: PR #5035

        Attachments

          Activity

            People

            • Assignee:
              pratiksha pratiksha
              Reporter:
              TeNNoX Manuel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: