If you are adminitrating a moodle installation on a windows system, you should read this notice and do the suggested test.
This is related to PHP interpretation of the code of moodle.
If you code something like
$ac = new stdClass;
$ac->options = "uniform:1:10:3";
$ad = $ac;
$ac->options = "uniform:1:1000:3";
you expect, as PPH is a transparent language, that
$ac->options contains "uniform:1:1000:3"; and
$ad->options contains "uniform:1:10:3"; .
This is what you will find using the PHP with moodle on Unix.
I found surprisingly that on my computer moodle windows version using the complete installation package from moodle.org (I retest it by downloading the today available PHP version ) , the code don't work and
$ac->options contains "uniform:1:1000:3"; and
$ad->options contains also "uniform:1:1000:3"; .
The explanation is that this PHP for windows does not create a new objet $ad but just gave to the variable $ad a pointer to $ac.
The assigment is working properly on arrays but not on class objects. The PHP should be recompiled with the correct options and a test should be included in moodle to check that the PHP used by moodle correctly assign stdClass object.
You could see a test file working properly on a unix moodle installation at
http://www.chimie.uqam.ca/moodle/testassignPHP.php
and the result obtained on my computer (windows installation) at
http://www.chimie.uqam.ca/moodle/Result_testing_PHP_windows_assigment_.htm
the attachment contains the file for testing your system.
I have submit the bug related to this problem.
This is somewhat a silent bug difficult to notice so this is why I submitted it in this forum so that everyone using moodle in windows could be aware of the problem even if there is no evident installation symptoms...