php4 style constructor

php.internals

Lukas Smith

20 years ago
Hi, I am wondering why does defining a php5 style and php4 style constructor in a class result in an E_STRICT warning, where as only defining a php4 style constructor does not? class foo { function __construct() {} function foo() {} } class foo2 { function foo2() {} } I could see it make sense the other way around, or issuing an E_STRICT for both .. regards, Lukas