Details

      Description

      In PHP5 you could add a text node to a SimpleXmlElement using the syntax
      $element->

      {0}

      = 'my text'. This would result in:
      <element>my text</element>

      In PHP7 this gives (the invalid XML):
      <element><0>my text</0></element>

      Instead in PHP7 you need to use $element[0] = 'my text' this results in the
      correct XML in both PHP5 and PHP7.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jonathan.green Jonathan Green
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: