Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-39873

check usage of class_exists to avoid usage of autoloading

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: Libraries
    • Labels:
    • Affected Branches:
      MOODLE_25_STABLE
    • Epic Link:
    • Story Points:
      5
    • Sprint:
      BACKEND Sprint 1

      Description

      Currently class_exits is not passing second parameter as false, in blocklib.php and pluginlib.php, because of which autoloader is called and hence can hit performance with autoloader functionality.
      Look at other usage of class_exists function and pass second param as false, where appropriate.

      http://php.net/manual/en/function.class-exists.php

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              rajeshtaneja Rajesh Taneja
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: