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

Only execute code for kernel-datatype-ezxmltext debug when enabled

    XMLWordPrintable

Details

    Description

      A lot of debug code in xml handler executes saveXML() calls on xml document a lot of times during xml parsing. When xml document is large, that can lead to timeout and/or memory exhaustion.

      Attached patch makes these calls truly conditional, so the extra ->saveXML() calls are not called if debug is disabled as it normally is by default. (kernel-datatype-ezxmltext needs to be specifically enabled in debug.ini, and is only used by developers when tracking bugs in ezxmltext).

      Attachments

        Activity

          People

            andre1 andre1
            andre1 andre1
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: