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

problems with changed number of parameters of validate($date, $files)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9
    • Component/s: Forms Library
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      Tim reported some weirdness related to new parameter files in mform->validate(),

      I can not reproduce it on my PHP 5.2, the is_validated is calling the validate() with two parameters now, maybe the problem is in method overriding

      Tim could you please test following code snippet on your server that shows those errors/warnings:
      <?php
      require ('config.php');

      class a {
      function go($c, $d)

      { echo "a: $c $d <br />"; }


      }

      class b {
      function go($c)

      { echo "b: $c <br />"; }


      }

      $a = new a();
      $a->go(1, 2);

      $b = new b();
      $b->go(1, 2);

      die;

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                skodak Petr Skoda
                Reporter:
                skodak Petr Skoda
                Tester:
                Nobody
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Mar/08