Uploaded image for project: 'SonarPHP'
  1. SonarPHP
  2. SONARPHP-1077

OufOfMemory in InheritanceDepthCheck

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.11
    • Component/s: None
    • Labels:
      None

      Description

      InheritanceDepthCheck (S110) runs into a an OutOfMemoryError when scanning the code in the attachment.

      The seems to happen when a class extends itself (not valid PHP, but we shouldn't crash). Example:

      <?php
      
      class Cls extends Cls {
      
      }
      

        Attachments

          Activity

            People

            • Assignee:
              pierre-yves.nicolas Pierre-Yves Nicolas
              Reporter:
              karim.ouerghemmi Karim El Ouerghemmi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: