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

clam_scan_file name conflict with clamav plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Duplicate
    • Affects Version/s: 1.5.4
    • Fix Version/s: None
    • Component/s: Libraries
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE

      Description

      With PHP4 at least, if the clamav PHP plugin is installed, then the file uploadlib.php can't be loaded because the function 'clam_scan_file' is redeclared. Presumeably the clamav plugin declares its own function with that name.

      Works fine now that I've uninstalled the PHP plugin (which I didn't need anyway).

      I think if the 'clam_scan_file' function was simply renamed (maybe to 'mdl_clam_scan_file' or something) then this would be fixed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dougiamas Martin Dougiamas
              Reporter:
              imported Imported
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: