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

CLONE -clam_scan_file name conflict with clamav plugin

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.5.4
    • 1.7.1
    • Antivirus, Libraries
    • None
    • All
    • MOODLE_15_STABLE
    • MOODLE_17_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

              dougiamas Martin Dougiamas
              rhaywood Richard
              Nobody Nobody
              Ruslan Kabalin, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/Jan/07