In PHP 4, any function with the same name as the nesting class was considered a class constructor. In PHP 5, this mechanism has been deprecated and the "__construct" method name should be used instead.
class Foo {
function Foo(){...}
}
class Foo {
function __construct(){...}
}