Problem upgrading from 1.8 to 1.9

Re: Problem upgrading from 1.8 to 1.9

by Richard Enison -
Number of replies: 0
LdV & MC,

Depends what you consider wrong. As I've said before in this forum, the problem is that PHP is a weakly typed language. It allows you to create objects and even classes (types) of objects on the fly without declaring them first. You can refer to properties of objects that the compiler/interpreter doesn't even know are objects until execution time. In a strongly typed language like C++ or Java this would be considered an error and would not allow the program to continue. PHP allows it but if you have debug reporting set to display notices, it will give you a notice about it and the program will continue. Moodle uses this feature a lot. So the simplest solution, as I said in my previous post in this thread, is to set error reporting not to produce notices. No change to the scripts required. Period. End of sentence. End of paragraph. End of story.

RLE