Patches

Pull Requests

History

New (in any combination of case - i.e. new, NEW, NeW, ...)
is a reserved word. Its presence indicates that you wish
to instantiate a new object from an existing class.
i.e.
class vegetable {
var $name;
function vegetable ($name) {
$this->name = $name;
}
}
$tomato = new vegetable ('tomato');
So this behavior is not out of line. However, define
should probably throw an error when attempting to create a
constant based on an reserved word.
I will work up a patch shortly.