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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.9
    • 1.9
    • Forms Library
    • None
    • MOODLE_19_STABLE
    • 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;

      Attachments

        Activity

          People

            skodak Petr Skoda
            skodak Petr Skoda
            Nobody Nobody
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              3/Mar/08