Issue Details (XML | Word | Printable)

Key: MDL-12133
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Petr Skoda
Reporter: Petr Skoda
Votes: 0
Watchers: 2
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

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

Created: 13/Nov/07 01:55 AM   Updated: 24/Nov/07 06:24 AM
Return to search
Component/s: Forms Library
Affects Version/s: 1.9
Fix Version/s: 1.9

Participants: Petr Skoda and Tim Hunt
Security Level: None
Resolved date: 24/Nov/07
Affected Branches: MOODLE_19_STABLE
Fixed Branches: MOODLE_19_STABLE


 Description  « Hide
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;



 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda made changes - 24/Nov/07 06:17 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]