Secondary heredoc eating wrong lines.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: core-libs
    • None
    • b125
    • generic
    • generic

      If multiple heredoc are expressed on the same statement line, lines are taken from the next line, not after lines read by other heredoc.

      print(<<EOD1); print(<<EOD2);
      This is line 1.
      This is line 2.
      EOD1
      This is line 3.
      This is line 4.
      EOD2

      Expected:

      This is line 1.
      This is line 2.
      This is line 3.
      This is line 4.

      Actual:

      This is line 1.
      This is line 2.
      This is line 1.
      This is line 2.
      EOD1
      This is line 3.
      This is line 4.

            Assignee:
            Hannes Wallnoefer
            Reporter:
            Jim Laskey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: